Skip to content

Commit

Permalink
test: check error with regex in test-signal-safety
Browse files Browse the repository at this point in the history
Change TypeError to a regular expression in assert.throws() in
test/parallel/test-signal-safety.js.

PR-URL: #14285
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
shaman2009 authored and addaleax committed Jul 18, 2017
1 parent 6361565 commit bf663a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-signal-safety.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ assert.throws(function() {
const s = new Signal();
const nots = { start: s.start };
nots.start(9);
}, TypeError);
}, /^TypeError: Illegal invocation$/);

0 comments on commit bf663a8

Please sign in to comment.