We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a4a61 commit b6060dbCopy full SHA for b6060db
lib/internal/test_runner/test.js
@@ -959,7 +959,8 @@ class Test extends AsyncResource {
959
this.expectFailure.with !== undefined) {
960
const { with: validation } = this.expectFailure;
961
try {
962
- assert.throws(() => { throw err; }, validation);
+ const { throws } = assert;
963
+ throws(() => { throw err; }, validation);
964
} catch (e) {
965
this.passed = false;
966
this.error = new ERR_TEST_FAILURE(
0 commit comments