test: update strictEqual arguments order

The argument order in the strictEqual check against stderr is in the
wrong order. The first argument is now the actual value and the second
argument is the expected value.

PR-URL: https://github.com/nodejs/node/pull/23552
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Clinton Pahl 2018-10-12 10:31:06 -07:00 committed by Ruben Bridgewater
parent 620c97716c
commit f0346065a7
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -36,5 +36,5 @@ childProcess.exec(cmd, common.mustCall(function(err, stdout, stderr) {
assert.ifError(err);
assert.strictEqual(stdout, `hello world\r\n${string}`);
assert.strictEqual('', stderr);
assert.strictEqual(stderr, '');
}));