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 90f9890

Browse filesBrowse files
razvanbhMylesBorins
authored andcommitted
test: fix arguments order in test-fs-write-buffer
PR-URL: #24155 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 1588fba commit 90f9890
Copy full SHA for 90f9890

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-fs-write-buffer.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-write-buffer.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ tmpdir.refresh();
5858
const cb = common.mustCall((err, written) => {
5959
assert.ifError(err);
6060

61-
assert.strictEqual(2, written);
61+
assert.strictEqual(written, 2);
6262
fs.closeSync(fd);
6363

6464
const found = fs.readFileSync(filename, 'utf8');
65-
assert.strictEqual('lo', found);
65+
assert.strictEqual(found, 'lo');
6666
});
6767

6868
fs.write(fd, Buffer.from('hello'), 3, cb);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.