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 <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
shaman2009 authored and MylesBorins committed Aug 16, 2017
1 parent 01d7d30 commit 2039435
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 2039435

Please sign in to comment.