diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-07-05 15:04:24 +0200 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2017-07-09 14:19:13 -0400 |
commit | 1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14 (patch) | |
tree | a91619531705dd144306cc07e01a3cc8d23f3bd7 /test/parallel/test-child-process-spawnsync-validation-errors.js | |
parent | be20e9ecfe79bea30fdca0f5757c0c54a02ac062 (diff) | |
download | android-node-v8-1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14.tar.gz android-node-v8-1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14.tar.bz2 android-node-v8-1b2733f272b77fb2beaa4b1f5ee600e8b9c36e14.zip |
test: common.expectsError should be a must call
Wrap expectsError in mustCall to make sure it's really called
as expected.
PR-URL: https://github.com/nodejs/node/pull/14088
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-spawnsync-validation-errors.js')
-rw-r--r-- | test/parallel/test-child-process-spawnsync-validation-errors.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-spawnsync-validation-errors.js b/test/parallel/test-child-process-spawnsync-validation-errors.js index 98a947825f..e586037e1d 100644 --- a/test/parallel/test-child-process-spawnsync-validation-errors.js +++ b/test/parallel/test-child-process-spawnsync-validation-errors.js @@ -186,7 +186,7 @@ if (!common.isWindows) { // Validate the killSignal option const typeErr = /^TypeError: "killSignal" must be a string or number$/; const unknownSignalErr = - common.expectsError({ code: 'ERR_UNKNOWN_SIGNAL', type: TypeError }); + common.expectsError({ code: 'ERR_UNKNOWN_SIGNAL', type: TypeError }, 17); pass('killSignal', undefined); pass('killSignal', null); |