Skip to content

Commit 78a3201

Browse files
remypar5MylesBorins
authored andcommitted
test: change order of assert.strictEqual()
PR-URL: #24142 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 64fd19f commit 78a3201

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
@@ -44,7 +44,7 @@ file
4444
.on('open', function(fd) {
4545
console.error('open!');
4646
callbacks.open++;
47-
assert.strictEqual('number', typeof fd);
47+
assert.strictEqual(typeof fd, 'number');
4848
})
4949
.on('error', function(err) {
5050
throw err;
@@ -86,7 +86,7 @@ for (let i = 0; i < 11; i++) {
8686

8787
process.on('exit', function() {
8888
for (const k in callbacks) {
89-
assert.strictEqual(0, callbacks[k], `${k} count off by ${callbacks[k]}`);
89+
assert.strictEqual(callbacks[k], 0, `${k} count off by ${callbacks[k]}`);
9090
}
9191
console.log('ok');
9292
});

0 commit comments

Comments
 (0)