diff options
author | Takahiro Nakamura <dxbxdxbxdxb+dev@gmail.com> | 2018-11-24 16:57:19 +0900 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2018-11-28 14:54:37 +0530 |
commit | a6fdbaf263767e9b7a8db6053ebea0ae44f6f1dc (patch) | |
tree | 36e434522bd48312d38a2867285399730039943e /test | |
parent | 1066b688bf56b490cb46d26d87e7b619037db151 (diff) | |
download | android-node-v8-a6fdbaf263767e9b7a8db6053ebea0ae44f6f1dc.tar.gz android-node-v8-a6fdbaf263767e9b7a8db6053ebea0ae44f6f1dc.tar.bz2 android-node-v8-a6fdbaf263767e9b7a8db6053ebea0ae44f6f1dc.zip |
test: fix arguments order in `assert.strictEqual`
PR-URL: https://github.com/nodejs/node/pull/24621
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-fs-write-buffer.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/parallel/test-fs-write-buffer.js b/test/parallel/test-fs-write-buffer.js index 0ff9fd69a8..362571f247 100644 --- a/test/parallel/test-fs-write-buffer.js +++ b/test/parallel/test-fs-write-buffer.js @@ -38,11 +38,11 @@ tmpdir.refresh(); const cb = common.mustCall((err, written) => { assert.ifError(err); - assert.strictEqual(expected.length, written); + assert.strictEqual(written, expected.length); fs.closeSync(fd); const found = fs.readFileSync(filename, 'utf8'); - assert.strictEqual(expected.toString(), found); + assert.strictEqual(found, expected.toString()); }); fs.write(fd, expected, 0, expected.length, null, cb); @@ -78,7 +78,7 @@ tmpdir.refresh(); const cb = common.mustCall(function(err, written) { assert.ifError(err); - assert.strictEqual(expected.length, written); + assert.strictEqual(written, expected.length); fs.closeSync(fd); const found = fs.readFileSync(filename, 'utf8'); @@ -98,7 +98,7 @@ tmpdir.refresh(); const cb = common.mustCall(function(err, written) { assert.ifError(err); - assert.strictEqual(expected.length, written); + assert.strictEqual(written, expected.length); fs.closeSync(fd); const found = fs.readFileSync(filename, 'utf8'); @@ -118,11 +118,11 @@ tmpdir.refresh(); const cb = common.mustCall((err, written) => { assert.ifError(err); - assert.strictEqual(expected.length, written); + assert.strictEqual(written, expected.length); fs.closeSync(fd); const found = fs.readFileSync(filename, 'utf8'); - assert.strictEqual(expected.toString(), found); + assert.strictEqual(found, expected.toString()); }); fs.write(fd, expected, undefined, undefined, cb); @@ -138,11 +138,11 @@ tmpdir.refresh(); const cb = common.mustCall((err, written) => { assert.ifError(err); - assert.strictEqual(expected.length, written); + assert.strictEqual(written, expected.length); fs.closeSync(fd); const found = fs.readFileSync(filename, 'utf8'); - assert.strictEqual(expected.toString(), found); + assert.strictEqual(found, expected.toString()); }); fs.write(fd, Uint8Array.from(expected), cb); |