Skip to content

Commit ec7bd18

Browse files
feng jianmeiBethGriggs
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 4cc91ff commit ec7bd18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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)