Skip to content

Commit d3bf469

Browse files
mrgorbotargos
authored andcommitted
test: cleaned up assert messages
PR-URL: #16032 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 270dd22 commit d3bf469

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

Lines changed: 2 additions & 4 deletions
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)