Skip to content

Commit 3b99191

Browse files
feng jianmeitargos
feng jianmei
authored andcommitted
test: fix argument order in assert.strictEqual
PR-URL: #24594 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent d6fff0e commit 3b99191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-child-process-cwd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function testCwd(options, expectCode = 0, expectData) {
4343
// Can't assert callback, as stayed in to API:
4444
// _The 'exit' event may or may not fire after an error has occurred._
4545
child.on('exit', function(code, signal) {
46-
assert.strictEqual(expectCode, code);
46+
assert.strictEqual(code, expectCode);
4747
});
4848

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

0 commit comments

Comments
 (0)