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 b90a141 commit 460a3e1Copy full SHA for 460a3e1
test/parallel/test-assert.js
@@ -358,7 +358,8 @@ try {
358
assert.equal(true, threw,
359
'a.doesNotThrow is not catching type matching errors');
360
361
-assert.throws(function() { assert.ifError(new Error('test error')); });
+assert.throws(function() { assert.ifError(new Error('test error')); },
362
+ /^Error: test error$/);
363
assert.doesNotThrow(function() { assert.ifError(null); });
364
assert.doesNotThrow(function() { assert.ifError(); });
365
0 commit comments