From 9053daf52a56bbc5088614b3acb06b17ab601e94 Mon Sep 17 00:00:00 2001 From: sigwyg Date: Sat, 24 Nov 2018 16:45:47 +0900 Subject: [PATCH] test: fix the arguments order in assert.strictEqual I working at "Code and Learn" on Node fest 2018 in Japan. Refs: https://github.com/nodejs/node/pull/24431 --- 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() {