From 939517abfdd28a5f72a79409cc82974bb729b2aa Mon Sep 17 00:00:00 2001 From: abouthiroppy Date: Wed, 11 Jan 2017 07:54:12 +0900 Subject: [PATCH] test: refactor test-fs-read-zero-length.js PR-URL: https://github.com/nodejs/node/pull/10729 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- test/parallel/test-fs-read-zero-length.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-read-zero-length.js b/test/parallel/test-fs-read-zero-length.js index 42e260360e79e2..a3e98f540a4151 100644 --- a/test/parallel/test-fs-read-zero-length.js +++ b/test/parallel/test-fs-read-zero-length.js @@ -7,7 +7,7 @@ const filepath = path.join(common.fixturesDir, 'x.txt'); const fd = fs.openSync(filepath, 'r'); const expected = ''; -fs.read(fd, 0, 0, 'utf-8', common.mustCall(function(err, str, bytesRead) { +fs.read(fd, 0, 0, 'utf-8', common.mustCall((err, str, bytesRead) => { assert.ok(!err); assert.strictEqual(str, expected); assert.strictEqual(bytesRead, 0);