Skip to content

Commit 82ef618

Browse files
sota1235rvagg
authored andcommittedNov 28, 2018
test: fix the arguments order in assert.strictEqual
PR-URL: #24595 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 663d1c8 commit 82ef618

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)