@@ -956,35 +956,35 @@ moduleFor(
956
956
}
957
957
) ;
958
958
959
- assert . ok ( ! isEmpty ( instance ) , 'a instance was created' ) ;
959
+ assert . ok ( instance , 'the component instance exinstance was created' ) ;
960
960
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
961
961
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
962
962
assert . equal ( this . $ ( ) . text ( ) , 'open' , 'the components text is "open"' ) ;
963
963
964
964
runTask ( ( ) => this . rerender ( ) ) ;
965
965
966
- assert . ok ( ! isEmpty ( instance ) , 'the component instance exists' ) ;
966
+ assert . ok ( instance , 'the component instance exists' ) ;
967
967
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
968
968
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
969
969
assert . equal ( this . $ ( ) . text ( ) , 'open' , 'the components text is "open"' ) ;
970
970
971
971
runTask ( ( ) => this . context . set ( 'isOpen' , false ) ) ;
972
972
973
- assert . ok ( ! isEmpty ( instance ) , 'the component instance exists' ) ;
973
+ assert . ok ( instance , 'the component instance exists' ) ;
974
974
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
975
975
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
976
976
assert . equal ( this . $ ( ) . text ( ) , 'closed' , 'the component text is "closed"' ) ;
977
977
978
978
runTask ( ( ) => this . rerender ( ) ) ;
979
979
980
- assert . ok ( ! isEmpty ( instance ) , 'the component instance exists' ) ;
980
+ assert . ok ( instance , 'the component instance exists' ) ;
981
981
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
982
982
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
983
983
assert . equal ( this . $ ( ) . text ( ) , 'closed' , 'the component text is "closed"' ) ;
984
984
985
985
runTask ( ( ) => this . context . set ( 'isOpen' , true ) ) ;
986
986
987
- assert . ok ( ! isEmpty ( instance ) , 'the component instance exists' ) ;
987
+ assert . ok ( instance , 'the component instance exists' ) ;
988
988
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
989
989
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
990
990
assert . equal ( this . $ ( ) . text ( ) , 'open' , 'the components text is "open"' ) ;
@@ -1021,35 +1021,35 @@ moduleFor(
1021
1021
}
1022
1022
) ;
1023
1023
1024
- assert . ok ( ! isEmpty ( instance ) , 'a instance was created' ) ;
1024
+ assert . ok ( instance , 'a instance was created' ) ;
1025
1025
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
1026
1026
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
1027
1027
assert . equal ( this . $ ( ) . text ( ) , 'open' , 'the components text is "open"' ) ;
1028
1028
1029
1029
runTask ( ( ) => this . rerender ( ) ) ;
1030
1030
1031
- assert . ok ( ! isEmpty ( instance ) , 'the component instance exists' ) ;
1031
+ assert . ok ( instance , 'the component instance exists' ) ;
1032
1032
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
1033
1033
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
1034
1034
assert . equal ( this . $ ( ) . text ( ) , 'open' , 'the components text is "open"' ) ;
1035
1035
1036
1036
runTask ( ( ) => this . context . set ( 'isOpen' , false ) ) ;
1037
1037
1038
- assert . ok ( ! isEmpty ( instance ) , 'the component instance exists' ) ;
1038
+ assert . ok ( instance , 'the component instance exists' ) ;
1039
1039
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
1040
1040
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
1041
1041
assert . equal ( this . $ ( ) . text ( ) , 'closed' , 'the component text is "closed"' ) ;
1042
1042
1043
1043
runTask ( ( ) => this . rerender ( ) ) ;
1044
1044
1045
- assert . ok ( ! isEmpty ( instance ) , 'the component instance exists' ) ;
1045
+ assert . ok ( instance , 'the component instance exists' ) ;
1046
1046
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
1047
1047
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
1048
1048
assert . equal ( this . $ ( ) . text ( ) , 'closed' , 'the component text is "closed"' ) ;
1049
1049
1050
1050
runTask ( ( ) => this . context . set ( 'isOpen' , true ) ) ;
1051
1051
1052
- assert . ok ( ! isEmpty ( instance ) , 'the component instance exists' ) ;
1052
+ assert . ok ( instance , 'the component instance exists' ) ;
1053
1053
assert . equal ( previousInstance , undefined , 'no previous component exists' ) ;
1054
1054
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
1055
1055
assert . equal ( this . $ ( ) . text ( ) , 'open' , 'the components text is "open"' ) ;
@@ -1099,22 +1099,22 @@ moduleFor(
1099
1099
}
1100
1100
) ;
1101
1101
1102
- assert . ok ( ! isEmpty ( instance ) , 'a instance was created' ) ;
1102
+ assert . ok ( instance , 'a instance was created' ) ;
1103
1103
assert . equal ( previousInstance , undefined , 'there is no previous instance' ) ;
1104
1104
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
1105
1105
assert . equal ( this . $ ( ) . text ( ) , 'my-comp: open' ) ;
1106
1106
1107
1107
runTask ( ( ) => this . rerender ( ) ) ;
1108
1108
1109
- assert . ok ( ! isEmpty ( instance ) , 'a instance exists after rerender' ) ;
1109
+ assert . ok ( instance , 'a instance exists after rerender' ) ;
1110
1110
assert . equal ( previousInstance , undefined , 'there is no previous instance after rerender' ) ;
1111
1111
assert . equal ( initCount , 1 , 'the component was constructed exactly 1 time' ) ;
1112
1112
assert . equal ( this . $ ( ) . text ( ) , 'my-comp: open' ) ;
1113
1113
1114
1114
runTask ( ( ) => this . context . set ( 'compName' , 'your-comp' ) ) ;
1115
1115
1116
- assert . ok ( ! isEmpty ( instance ) , 'an instance was created after component name changed' ) ;
1117
- assert . ok ( ! isEmpty ( previousInstance ) , 'a previous instance now exists' ) ;
1116
+ assert . ok ( instance , 'an instance was created after component name changed' ) ;
1117
+ assert . ok ( previousInstance , 'a previous instance now exists' ) ;
1118
1118
assert . notEqual (
1119
1119
instance ,
1120
1120
previousInstance ,
@@ -1125,11 +1125,8 @@ moduleFor(
1125
1125
1126
1126
runTask ( ( ) => this . rerender ( ) ) ;
1127
1127
1128
- assert . ok (
1129
- ! isEmpty ( instance ) ,
1130
- 'an instance was created after component name changed (rerender)'
1131
- ) ;
1132
- assert . ok ( ! isEmpty ( previousInstance ) , 'a previous instance now exists (rerender)' ) ;
1128
+ assert . ok ( instance , 'an instance was created after component name changed (rerender)' ) ;
1129
+ assert . ok ( previousInstance , 'a previous instance now exists (rerender)' ) ;
1133
1130
assert . notEqual (
1134
1131
instance ,
1135
1132
previousInstance ,
@@ -1140,8 +1137,8 @@ moduleFor(
1140
1137
1141
1138
runTask ( ( ) => this . context . set ( 'compName' , 'my-comp' ) ) ;
1142
1139
1143
- assert . ok ( ! isEmpty ( instance ) , 'an instance was created after component name changed' ) ;
1144
- assert . ok ( ! isEmpty ( previousInstance ) , 'a previous instance still exists' ) ;
1140
+ assert . ok ( instance , 'an instance was created after component name changed' ) ;
1141
+ assert . ok ( previousInstance , 'a previous instance still exists' ) ;
1145
1142
assert . notEqual (
1146
1143
instance ,
1147
1144
previousInstance ,
0 commit comments