diff --git a/lib/test.js b/lib/test.js index 9d7f0623a..c33c2fa8e 100644 --- a/lib/test.js +++ b/lib/test.js @@ -154,7 +154,7 @@ class Test { countPassedAssertion() { if (this.finishing) { - this.saveFirstError(new Error('Assertion passed, but test has already ended')); + this.saveFirstError(new Error('Assertion passed, but test has already finished')); } this.assertCount++; @@ -162,7 +162,7 @@ class Test { addPendingAssertion(promise) { if (this.finishing) { - this.saveFirstError(new Error('Assertion passed, but test has already ended')); + this.saveFirstError(new Error('Assertion passed, but test has already finished')); } this.assertCount++; @@ -171,7 +171,7 @@ class Test { addFailedAssertion(error) { if (this.finishing) { - this.saveFirstError(new Error('Assertion failed, but test has already ended')); + this.saveFirstError(new Error('Assertion failed, but test has already finished')); } this.assertCount++; diff --git a/test/test.js b/test/test.js index e8111d6b6..43789ba11 100644 --- a/test/test.js +++ b/test/test.js @@ -591,7 +591,7 @@ test('number of assertions matches t.plan when the test exits, but before all pe result = r; }).run().then(passed => { t.is(passed, false); - t.match(result.reason.message, /Assertion passed, but test has already ended/); + t.match(result.reason.message, /Assertion passed, but test has already finished/); t.is(result.reason.name, 'Error'); t.end(); }); @@ -610,7 +610,7 @@ test('number of assertions matches t.plan when the test exits, but before all pe result = r; }).run().then(passed => { t.is(passed, false); - t.match(result.reason.message, /Assertion failed, but test has already ended/); + t.match(result.reason.message, /Assertion failed, but test has already finished/); t.is(result.reason.name, 'Error'); t.end(); });