Browse Source

test: refactor test-fs-read-zero-length.js

PR-URL: https://github.com/nodejs/node/pull/10729
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v7.x
abouthiroppy 8 years ago
committed by Italo A. Casas
parent
commit
939517abfd
No known key found for this signature in database GPG Key ID: 23EFEFE93C4CFFFE
  1. 2
      test/parallel/test-fs-read-zero-length.js

2
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 fd = fs.openSync(filepath, 'r');
const expected = ''; 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.ok(!err);
assert.strictEqual(str, expected); assert.strictEqual(str, expected);
assert.strictEqual(bytesRead, 0); assert.strictEqual(bytesRead, 0);

Loading…
Cancel
Save