test: use strictEqual instead of equal
PR-URL: https://github.com/nodejs/node/pull/9921 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
f6d15b033b
commit
27c0a0ca9d
@ -46,8 +46,8 @@ proc.stdout.on('data', (data) => {
|
||||
proc.stderr.on('data', (data) => stderr += data);
|
||||
|
||||
process.on('exit', (code) => {
|
||||
assert.equal(code, 0, 'the program should exit cleanly');
|
||||
assert.equal(stdout.includes('{ a: \'b\' }'), true,
|
||||
'the debugger should print the result of util.inspect');
|
||||
assert.equal(stderr, '', 'stderr should be empty');
|
||||
assert.strictEqual(code, 0, 'the program should exit cleanly');
|
||||
assert.strictEqual(stdout.includes('{ a: \'b\' }'), true,
|
||||
'the debugger should print the result of util.inspect');
|
||||
assert.strictEqual(stderr, '', 'stderr should be empty');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user