From 3b99191e1392e1b742f885c2dd996062766a1de5 Mon Sep 17 00:00:00 2001 From: feng jianmei Date: Sat, 24 Nov 2018 16:15:56 +0900 Subject: [PATCH] test: fix argument order in assert.strictEqual PR-URL: https://github.com/nodejs/node/pull/24594 Reviewed-By: Anna Henningsen Reviewed-By: Shingo Inoue Reviewed-By: Colin Ihrig --- test/parallel/test-child-process-cwd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-child-process-cwd.js b/test/parallel/test-child-process-cwd.js index fdca618a8bcc9c..f2e0a29afb4a6d 100644 --- a/test/parallel/test-child-process-cwd.js +++ b/test/parallel/test-child-process-cwd.js @@ -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() {