mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: check error with regex in test-signal-safety
Change TypeError to a regular expression in assert.throws() in test/parallel/test-signal-safety.js. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
8010b2148f
commit
e650fe07f4
1 file changed
+1
-1
@@ -9,4 +9,4 @@ assert.throws(function() {
|
||||
const s = new Signal();
|
||||
const nots = { start: s.start };
|
||||
nots.start(9);
|
||||
}, TypeError);
|
||||
}, /^TypeError: Illegal invocation$/);
|
||||
Reference in new issue
Block a user