Skip to content

Commit c62917d

Browse files
committed
test: add a second argument to assert.throws()
- a regular expression that matches the entire error message.
1 parent f637703 commit c62917d

File tree

1 file changed

+1
-1
lines changed
  • test/addons/make-callback-recurse

1 file changed

+1
-1
lines changed

test/addons/make-callback-recurse/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ assert.throws(function() {
1515
makeCallback({}, function() {
1616
throw new Error('hi from domain error');
1717
});
18-
});
18+
}, /^Error: hi from domain error$/);
1919

2020

2121
// Check the execution order of the nextTickQueue and MicrotaskQueue in

0 commit comments

Comments
 (0)