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:
parent
87d0aa8686
commit
6727f1c787
@ -15,7 +15,7 @@ fs.writeFileSync(srcPath, 'hello world');
|
|||||||
function callback(err) {
|
function callback(err) {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
const dstContent = fs.readFileSync(dstPath, 'utf8');
|
const dstContent = fs.readFileSync(dstPath, 'utf8');
|
||||||
assert.strictEqual('hello world', dstContent);
|
assert.strictEqual(dstContent, 'hello world');
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.link(srcPath, dstPath, common.mustCall(callback));
|
fs.link(srcPath, dstPath, common.mustCall(callback));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user