From 6924a4d2372dc8a0a364c09d7385550e5f57115a Mon Sep 17 00:00:00 2001 From: Richard Walker Date: Sat, 17 Sep 2016 11:27:38 +0200 Subject: [PATCH] test: update test/parallel/test-fs-read.js * Replace equal with strictEqual * Update functions to arrow functions PR-URL: https://github.com/nodejs/node/pull/8596 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca --- test/parallel/test-fs-read.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-fs-read.js b/test/parallel/test-fs-read.js index 7da4e9b8144557..41957c228ea944 100644 --- a/test/parallel/test-fs-read.js +++ b/test/parallel/test-fs-read.js @@ -11,12 +11,12 @@ fs.read(fd, expected.length, 0, 'utf-8', - common.mustCall(function(err, str, bytesRead) { - assert.ok(!err); - assert.equal(str, expected); - assert.equal(bytesRead, expected.length); + common.mustCall((err, str, bytesRead) => { + assert.ifError(err); + assert.strictEqual(str, expected); + assert.strictEqual(bytesRead, expected.length); })); var r = fs.readSync(fd, expected.length, 0, 'utf-8'); -assert.equal(r[0], expected); -assert.equal(r[1], expected.length); +assert.strictEqual(r[0], expected); +assert.strictEqual(r[1], expected.length);