mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
test: fix argument order in assert.strictEqual
PR-URL: https://github.com/nodejs/node/pull/24594 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
967363d53a
commit
73cfbb0259
1 file changed
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user