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 <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>
  • 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.