Skip to content

Commit

Permalink
stack varies so dont return an error
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Jul 26, 2022
1 parent 6576c3f commit be64a83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion test/message/test_runner_output.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ test('rejected thenable', () => {
get then() {
if (thenCalled) throw new Error();
thenCalled = true;
return (_, errorHandler) => errorHandler(new Error('custom error'));
return (_, errorHandler) => errorHandler('custom error');
},
};
});
5 changes: 0 additions & 5 deletions test/message/test_runner_output.out
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,6 @@ not ok 62 - rejected thenable
failureType: 'testCodeFailure'
error: 'custom error'
code: 'ERR_TEST_FAILURE'
stack: |-
*
*
*
*
...
# Subtest: invalid subtest fail
not ok 63 - invalid subtest fail
Expand Down

0 comments on commit be64a83

Please sign in to comment.