Skip to content

Commit

Permalink
test: fix the arguments order in assert.strictEqual
Browse files Browse the repository at this point in the history
PR-URL: nodejs#24595
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
sota1235 authored and Trott committed Nov 24, 2018
1 parent 7c3c70c commit 3c4f8a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-file-write-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ file
console.error('drain!', callbacks.drain);
callbacks.drain++;
if (callbacks.drain === -1) {
assert.strictEqual(EXPECTED, fs.readFileSync(fn, 'utf8'));
assert.strictEqual(fs.readFileSync(fn, 'utf8'), EXPECTED);
file.write(EXPECTED);
} else if (callbacks.drain === 0) {
assert.strictEqual(EXPECTED + EXPECTED, fs.readFileSync(fn, 'utf8'));
assert.strictEqual(fs.readFileSync(fn, 'utf8'), EXPECTED + EXPECTED);
file.end();
}
})
Expand Down

0 comments on commit 3c4f8a1

Please sign in to comment.