Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 78a3201

Browse filesBrowse files
remypar5MylesBorins
authored andcommitted
test: change order of assert.strictEqual()
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>
1 parent 64fd19f commit 78a3201
Copy full SHA for 78a3201

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-file-write-stream.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-file-write-stream.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.