Skip to content

Commit

Permalink
test: fix argument order in assert.strictEqual
Browse files Browse the repository at this point in the history
PR-URL: nodejs#24594
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
feng jianmei authored and refack committed Jan 10, 2019
1 parent f4bd08e commit 879a8c3
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 879a8c3

Please sign in to comment.