diff --git a/lib/errors.js b/lib/errors.js index 919fd002e0..005a2908a1 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -4,6 +4,7 @@ const isThrowingExpectedErrors = function (testsFuncs, expectedErrMsg) { const results = testsFuncs.map((f) => { try { f(); + return INCORRECT_RESULT_MSG; } catch (err) { if (isNotImplementedError(err)) { this.todo();