test: change order of assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Remy Parzinski authored and Myles Borins committed 2018-12-26 11:18:47 -05:00
1 parent 64fd19f102
commit 78a320130d
1 file changed
+2 -2
+2 -2
View File
@@ -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;
@@ -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');
});