diff options
author | Michaƫl Zasso <mic.besace@gmail.com> | 2016-01-13 21:42:45 +0100 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2016-01-13 23:16:17 +0100 |
commit | d1aabd626428cec65e5f54c04d9e3446d1e4d3b7 (patch) | |
tree | 9a4d4de19204b8b50d496dd6046a897f107bcf4d /test/parallel/test-fs-read.js | |
parent | ec8e0ae697d96c417bda0bbe5be9712cf5923b1f (diff) | |
download | android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.gz android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.bz2 android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.zip |
test: fix style issues after eslint update
Replace var keyword with const or let.
PR-URL: https://github.com/nodejs/io.js/pull/2286
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-fs-read.js')
-rw-r--r-- | test/parallel/test-fs-read.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/parallel/test-fs-read.js b/test/parallel/test-fs-read.js index 8b0b6fe0a3..6f20656e28 100644 --- a/test/parallel/test-fs-read.js +++ b/test/parallel/test-fs-read.js @@ -1,12 +1,12 @@ 'use strict'; -var common = require('../common'); -var assert = require('assert'); -var path = require('path'), - fs = require('fs'), - filepath = path.join(common.fixturesDir, 'x.txt'), - fd = fs.openSync(filepath, 'r'), - expected = 'xyz\n', - readCalled = 0; +const common = require('../common'); +const assert = require('assert'); +const path = require('path'); +const fs = require('fs'); +const filepath = path.join(common.fixturesDir, 'x.txt'); +const fd = fs.openSync(filepath, 'r'); +const expected = 'xyz\n'; +let readCalled = 0; fs.read(fd, expected.length, 0, 'utf-8', function(err, str, bytesRead) { readCalled++; |