Skip to content

Commit a5ac7b9

Browse files
michael-zuckerBridgeAR
authored andcommitted
test: fixed the arguments order in assert.strictEqual
This change was initiated from the NodeConfEU session. PR-URL: #24135 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 71545e6 commit a5ac7b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ cat.stdin.write('hello');
3030
cat.stdin.write(' ');
3131
cat.stdin.write('world');
3232

33-
assert.strictEqual(true, cat.stdin.writable);
34-
assert.strictEqual(false, cat.stdin.readable);
33+
assert.strictEqual(cat.stdin.writable, true);
34+
assert.strictEqual(cat.stdin.readable, false);
3535

3636
cat.stdin.end();
3737

@@ -50,9 +50,9 @@ cat.stderr.on('data', common.mustNotCall());
5050
cat.stderr.on('end', common.mustCall());
5151

5252
cat.on('exit', common.mustCall(function(status) {
53-
assert.strictEqual(0, status);
53+
assert.strictEqual(status, 0);
5454
}));
5555

5656
cat.on('close', common.mustCall(function() {
57-
assert.strictEqual('hello world', response);
57+
assert.strictEqual(response, 'hello world');
5858
}));

0 commit comments

Comments
 (0)