Skip to content

Commit

Permalink
test: change order of assert.strictEqual()
Browse files Browse the repository at this point in the history
PR-URL: #24142
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
remypar5 authored and MylesBorins committed Dec 26, 2018
1 parent 64fd19f commit 78a3201
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 @@ -44,7 +44,7 @@ file
.on('open', function(fd) {
console.error('open!');
callbacks.open++;
assert.strictEqual('number', typeof fd);
assert.strictEqual(typeof fd, 'number');
})
.on('error', function(err) {
throw err;
Expand Down Expand Up @@ -86,7 +86,7 @@ for (let i = 0; i < 11; i++) {

process.on('exit', function() {
for (const k in callbacks) {
assert.strictEqual(0, callbacks[k], `${k} count off by ${callbacks[k]}`);
assert.strictEqual(callbacks[k], 0, `${k} count off by ${callbacks[k]}`);
}
console.log('ok');
});

0 comments on commit 78a3201

Please sign in to comment.