From 3047cf1b48fecae8bc521bd5fd3157fb592ceaa1 Mon Sep 17 00:00:00 2001 From: shaman Date: Sun, 16 Jul 2017 23:44:01 +0800 Subject: [PATCH] test: check error with regex in test-signal-safety MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Timothy Gu Reviewed-By: Tobias Nießen Reviewed-By: Gireesh Punathil Reviewed-By: Refael Ackermann Reviewed-By: James M Snell --- test/parallel/test-signal-safety.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-signal-safety.js b/test/parallel/test-signal-safety.js index 34722b712f8889..a4fb618b1cbfa5 100644 --- a/test/parallel/test-signal-safety.js +++ b/test/parallel/test-signal-safety.js @@ -9,4 +9,4 @@ assert.throws(function() { const s = new Signal(); const nots = { start: s.start }; nots.start(9); -}, TypeError); +}, /^TypeError: Illegal invocation$/);