Skip to content

Commit 7b09602

Browse files
sota1235BethGriggs
authored andcommitted
test: fix the arguments order in assert.strictEqual
PR-URL: #24595 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent bda7354 commit 7b09602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-file-write-stream.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ file
5353
console.error('drain!', callbacks.drain);
5454
callbacks.drain++;
5555
if (callbacks.drain === -1) {
56-
assert.strictEqual(EXPECTED, fs.readFileSync(fn, 'utf8'));
56+
assert.strictEqual(fs.readFileSync(fn, 'utf8'), EXPECTED);
5757
file.write(EXPECTED);
5858
} else if (callbacks.drain === 0) {
59-
assert.strictEqual(EXPECTED + EXPECTED, fs.readFileSync(fn, 'utf8'));
59+
assert.strictEqual(fs.readFileSync(fn, 'utf8'), EXPECTED + EXPECTED);
6060
file.end();
6161
}
6262
})

0 commit comments

Comments
 (0)