summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-constructor.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2017-06-21 20:23:37 +0200
committerTobias Nießen <tniessen@tnie.de>2017-06-28 20:00:36 +0200
commit1a452f1928c3c904f8405048794632a6da6a94c6 (patch)
treee9d1c2e84c8a2869be321a1af2e37c631bc0f1f0 /test/parallel/test-child-process-constructor.js
parent1698c8e1655adaf19e13cc6a5e1a4a570735e16f (diff)
downloadandroid-node-v8-1a452f1928c3c904f8405048794632a6da6a94c6.tar.gz
android-node-v8-1a452f1928c3c904f8405048794632a6da6a94c6.tar.bz2
android-node-v8-1a452f1928c3c904f8405048794632a6da6a94c6.zip
dgram,process,util: refactor Error to TypeError
PR-URL: https://github.com/nodejs/node/pull/13857 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test/parallel/test-child-process-constructor.js')
-rw-r--r--test/parallel/test-child-process-constructor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-constructor.js b/test/parallel/test-child-process-constructor.js
index 8e62f5cc23..54052d9f71 100644
--- a/test/parallel/test-child-process-constructor.js
+++ b/test/parallel/test-child-process-constructor.js
@@ -68,6 +68,6 @@ assert(Number.isInteger(child.pid));
// try killing with invalid signal
assert.throws(() => {
child.kill('foo');
-}, common.expectsError({ code: 'ERR_UNKNOWN_SIGNAL' }));
+}, common.expectsError({ code: 'ERR_UNKNOWN_SIGNAL', type: TypeError }));
assert.strictEqual(child.kill(), true);