mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
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:
parent
be20e9ecfe
commit
1b2733f272
18 changed files with 49 additions and 60 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue