diff options
author | Gibson Fahnestock <gibfahn@gmail.com> | 2017-03-09 18:11:21 +0000 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-04-18 20:01:49 -0400 |
commit | db61c952de2aa4591c60f4772fa62f0bc3474577 (patch) | |
tree | 9e585bb427b689eeb8ec431f6e8515595c7e6e5d /test/parallel/test-fs-long-path.js | |
parent | de636980668017c2ed155ba6f75ac5e6a2af647b (diff) | |
download | node-new-db61c952de2aa4591c60f4772fa62f0bc3474577.tar.gz |
test: use eslint to fix var->const/let
Manually fix issues that eslint --fix couldn't do automatically.
Backport-PR-URL: https://github.com/nodejs/node/pull/11775
PR-URL: https://github.com/nodejs/node/pull/10685
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-fs-long-path.js')
-rw-r--r-- | test/parallel/test-fs-long-path.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-fs-long-path.js b/test/parallel/test-fs-long-path.js index 64585467ed..7082e740ed 100644 --- a/test/parallel/test-fs-long-path.js +++ b/test/parallel/test-fs-long-path.js @@ -1,7 +1,7 @@ 'use strict'; -var common = require('../common'); -var fs = require('fs'); -var path = require('path'); +const common = require('../common'); +const fs = require('fs'); +const path = require('path'); if (!common.isWindows) { common.skip('this test is Windows-specific.'); @@ -9,9 +9,9 @@ if (!common.isWindows) { } // make a path that will be at least 260 chars long. -var fileNameLen = Math.max(260 - common.tmpDir.length - 1, 1); -var fileName = path.join(common.tmpDir, new Array(fileNameLen + 1).join('x')); -var fullPath = path.resolve(fileName); +const fileNameLen = Math.max(260 - common.tmpDir.length - 1, 1); +const fileName = path.join(common.tmpDir, new Array(fileNameLen + 1).join('x')); +const fullPath = path.resolve(fileName); common.refreshTmpDir(); |