test: fix argument order in assertions
PR-URL: https://github.com/nodejs/node/pull/23589 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
134389142e
commit
c8986bb7a3
@ -44,13 +44,13 @@ child.stdout.on('data', function(data) {
|
||||
console.log(`child said: ${JSON.stringify(data)}`);
|
||||
if (!gotHelloWorld) {
|
||||
console.error('testing for hello world');
|
||||
assert.strictEqual('hello world\r\n', data);
|
||||
assert.strictEqual(data, 'hello world\r\n');
|
||||
gotHelloWorld = true;
|
||||
console.error('writing echo me');
|
||||
child.stdin.write('echo me\r\n');
|
||||
} else {
|
||||
console.error('testing for echo me');
|
||||
assert.strictEqual('echo me\r\n', data);
|
||||
assert.strictEqual(data, 'echo me\r\n');
|
||||
gotEcho = true;
|
||||
child.stdin.end();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user