Skip to content

Commit b33b3e1

Browse files
mrgorbojoyeecheung
authored andcommitted
test: cleaned up assert messages
PR-URL: #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>
1 parent 4716a9d commit b33b3e1

File tree

1 file changed

+2
-4
lines changed
  • test/addons-napi/test_warning

1 file changed

+2
-4
lines changed

test/addons-napi/test_warning/test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ if (process.argv[2] === 'child') {
1111
'change at any time.';
1212

1313
const result = run(process.execPath, [__filename, 'child']);
14-
assert.deepStrictEqual(result.stdout.toString().match(/\S+/g), ['42', '1337'],
15-
'Modules loaded correctly');
16-
assert.deepStrictEqual(result.stderr.toString().split(warning).length, 2,
17-
'Warning was displayed only once');
14+
assert.deepStrictEqual(result.stdout.toString().match(/\S+/g), ['42', '1337']);
15+
assert.deepStrictEqual(result.stderr.toString().split(warning).length, 2);
1816
}

0 commit comments

Comments
 (0)