File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -154,15 +154,15 @@ class Test {
154
154
155
155
countPassedAssertion ( ) {
156
156
if ( this . finishing ) {
157
- this . saveFirstError ( new Error ( 'Assertion passed, but test has already ended ' ) ) ;
157
+ this . saveFirstError ( new Error ( 'Assertion passed, but test has already finished ' ) ) ;
158
158
}
159
159
160
160
this . assertCount ++ ;
161
161
}
162
162
163
163
addPendingAssertion ( promise ) {
164
164
if ( this . finishing ) {
165
- this . saveFirstError ( new Error ( 'Assertion passed, but test has already ended ' ) ) ;
165
+ this . saveFirstError ( new Error ( 'Assertion passed, but test has already finished ' ) ) ;
166
166
}
167
167
168
168
this . assertCount ++ ;
@@ -171,7 +171,7 @@ class Test {
171
171
172
172
addFailedAssertion ( error ) {
173
173
if ( this . finishing ) {
174
- this . saveFirstError ( new Error ( 'Assertion failed, but test has already ended ' ) ) ;
174
+ this . saveFirstError ( new Error ( 'Assertion failed, but test has already finished ' ) ) ;
175
175
}
176
176
177
177
this . assertCount ++ ;
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ test('number of assertions matches t.plan when the test exits, but before all pe
591
591
result = r ;
592
592
} ) . run ( ) . then ( passed => {
593
593
t . is ( passed , false ) ;
594
- t . match ( result . reason . message , / A s s e r t i o n p a s s e d , b u t t e s t h a s a l r e a d y e n d e d / ) ;
594
+ t . match ( result . reason . message , / A s s e r t i o n p a s s e d , b u t t e s t h a s a l r e a d y f i n i s h e d / ) ;
595
595
t . is ( result . reason . name , 'Error' ) ;
596
596
t . end ( ) ;
597
597
} ) ;
@@ -610,7 +610,7 @@ test('number of assertions matches t.plan when the test exits, but before all pe
610
610
result = r ;
611
611
} ) . run ( ) . then ( passed => {
612
612
t . is ( passed , false ) ;
613
- t . match ( result . reason . message , / A s s e r t i o n f a i l e d , b u t t e s t h a s a l r e a d y e n d e d / ) ;
613
+ t . match ( result . reason . message , / A s s e r t i o n f a i l e d , b u t t e s t h a s a l r e a d y f i n i s h e d / ) ;
614
614
t . is ( result . reason . name , 'Error' ) ;
615
615
t . end ( ) ;
616
616
} ) ;
You can’t perform that action at this time.
0 commit comments