Skip to content

Commit

Permalink
test: add a second argument to assert.throws()
Browse files Browse the repository at this point in the history
- a regular expression that matches the entire error message.
  • Loading branch information
dave-k committed Apr 4, 2017
1 parent f637703 commit c62917d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/addons/make-callback-recurse/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ assert.throws(function() {
makeCallback({}, function() {
throw new Error('hi from domain error');
});
});
}, /^Error: hi from domain error$/);


// Check the execution order of the nextTickQueue and MicrotaskQueue in
Expand Down

0 comments on commit c62917d

Please sign in to comment.