test: cleaned up assert messages
PR-URL: https://github.com/nodejs/node/pull/16032 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
4716a9d349
commit
b33b3e1838
@ -11,8 +11,6 @@ if (process.argv[2] === 'child') {
|
|||||||
'change at any time.';
|
'change at any time.';
|
||||||
|
|
||||||
const result = run(process.execPath, [__filename, 'child']);
|
const result = run(process.execPath, [__filename, 'child']);
|
||||||
assert.deepStrictEqual(result.stdout.toString().match(/\S+/g), ['42', '1337'],
|
assert.deepStrictEqual(result.stdout.toString().match(/\S+/g), ['42', '1337']);
|
||||||
'Modules loaded correctly');
|
assert.deepStrictEqual(result.stderr.toString().split(warning).length, 2);
|
||||||
assert.deepStrictEqual(result.stderr.toString().split(warning).length, 2,
|
|
||||||
'Warning was displayed only once');
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user