Skip to content

Commit

Permalink
test: cleaned up assert messages
Browse files Browse the repository at this point in the history
Backport-PR-URL: #19447
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]>
  • Loading branch information
mrgorbo authored and MylesBorins committed Apr 16, 2018
1 parent 53bd313 commit 5bba809
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/addons-napi/test_warning/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 5bba809

Please sign in to comment.