Browse Source

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>
v9.x-staging
mrgorbo 8 years ago
committed by Joyee Cheung
parent
commit
b33b3e1838
  1. 6
      test/addons-napi/test_warning/test.js

6
test/addons-napi/test_warning/test.js

@ -11,8 +11,6 @@ if (process.argv[2] === 'child') {
'change at any time.';
const result = run(process.execPath, [__filename, 'child']);
assert.deepStrictEqual(result.stdout.toString().match(/\S+/g), ['42', '1337'],
'Modules loaded correctly');
assert.deepStrictEqual(result.stderr.toString().split(warning).length, 2,
'Warning was displayed only once');
assert.deepStrictEqual(result.stdout.toString().match(/\S+/g), ['42', '1337']);
assert.deepStrictEqual(result.stderr.toString().split(warning).length, 2);
}

Loading…
Cancel
Save