test: fix the arguments order in assert.strictEqual

This change was initiated from the NodeConfEU session.

PR-URL: https://github.com/nodejs/node/pull/24227
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
mzucker 2018-11-07 15:21:37 +00:00 committed by Rich Trott
parent 87d0aa8686
commit 6727f1c787

View File

@ -15,7 +15,7 @@ fs.writeFileSync(srcPath, 'hello world');
function callback(err) {
assert.ifError(err);
const dstContent = fs.readFileSync(dstPath, 'utf8');
assert.strictEqual('hello world', dstContent);
assert.strictEqual(dstContent, 'hello world');
}
fs.link(srcPath, dstPath, common.mustCall(callback));