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>
This commit is contained in:
Ruben Bridgewater 2017-07-05 15:04:24 +02:00 committed by Refael Ackermann
parent be20e9ecfe
commit 1b2733f272
No known key found for this signature in database
GPG key ID: CD704BD80FDDDB64
18 changed files with 49 additions and 60 deletions

View file

@ -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);