Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: fix assert.strictEqual
  • Loading branch information
feng jianmei authored and feng jianmei committed Nov 24, 2018
commit ad01b3fe7e9e458df136e1bdf7ed148c2a5a928a
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function testCwd(options, expectCode = 0, expectData) {
// Can't assert callback, as stayed in to API:
// _The 'exit' event may or may not fire after an error has occurred._
child.on('exit', function(code, signal) {
assert.strictEqual(expectCode, code);
assert.strictEqual(code, expectCode);
});

child.on('close', common.mustCall(function() {
Expand Down