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 MylesBorins committed Sep 5, 2017
1 parent f8b60e4 commit 3047cf1
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 3047cf1

Please sign in to comment.