From d86ff5fc291bd1cb604750cd83e3cef2d415069a 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 4c7dd73f60ebb1..328726a23bc4f8 100644 --- a/test/parallel/test-fs-read-zero-length.js +++ b/test/parallel/test-fs-read-zero-length.js @@ -9,7 +9,7 @@ const fd = fs.openSync(filepath, 'r'); const bufferAsync = Buffer.alloc(0); const bufferSync = Buffer.alloc(0); -fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall(function(err, bytesRead) { +fs.read(fd, bufferAsync, 0, 0, 0, common.mustCall((err, bytesRead) => { assert.strictEqual(bytesRead, 0); assert.deepStrictEqual(bufferAsync, Buffer.alloc(0)); }));