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:
parent
0dbbded38b
commit
d3a4812cb7
@ -44,7 +44,7 @@ file
|
|||||||
.on('open', function(fd) {
|
.on('open', function(fd) {
|
||||||
console.error('open!');
|
console.error('open!');
|
||||||
callbacks.open++;
|
callbacks.open++;
|
||||||
assert.strictEqual('number', typeof fd);
|
assert.strictEqual(typeof fd, 'number');
|
||||||
})
|
})
|
||||||
.on('error', function(err) {
|
.on('error', function(err) {
|
||||||
throw err;
|
throw err;
|
||||||
@ -86,7 +86,7 @@ for (let i = 0; i < 11; i++) {
|
|||||||
|
|
||||||
process.on('exit', function() {
|
process.on('exit', function() {
|
||||||
for (const k in callbacks) {
|
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');
|
console.log('ok');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user