Skip to content

Commit ecc4297

Browse files
digitalsadhujasnell
authored andcommitted
test: update test/parallel/test-fs-read.js
* Replace equal with strictEqual * Update functions to arrow functions PR-URL: #8596 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b906337 commit ecc4297

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/parallel/test-fs-read.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ fs.read(fd,
1111
expected.length,
1212
0,
1313
'utf-8',
14-
common.mustCall(function(err, str, bytesRead) {
15-
assert.ok(!err);
16-
assert.equal(str, expected);
17-
assert.equal(bytesRead, expected.length);
14+
common.mustCall((err, str, bytesRead) => {
15+
assert.ifError(err);
16+
assert.strictEqual(str, expected);
17+
assert.strictEqual(bytesRead, expected.length);
1818
}));
1919

2020
var r = fs.readSync(fd, expected.length, 0, 'utf-8');
21-
assert.equal(r[0], expected);
22-
assert.equal(r[1], expected.length);
21+
assert.strictEqual(r[0], expected);
22+
assert.strictEqual(r[1], expected.length);

0 commit comments

Comments
 (0)