diff options
author | cjihrig <cjihrig@gmail.com> | 2016-12-30 18:38:06 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-01-02 18:28:18 -0500 |
commit | ff1efa60878d8353e1b8e36684a786bdf57963fb (patch) | |
tree | 31399a1732ff2b91374fdcaaf2d5d0976b6a00a7 /test/fixtures/cluster-preload.js | |
parent | 1605a2e02ae6887e57292543489c76eef5c545d0 (diff) | |
download | android-node-v8-ff1efa60878d8353e1b8e36684a786bdf57963fb.tar.gz android-node-v8-ff1efa60878d8353e1b8e36684a786bdf57963fb.tar.bz2 android-node-v8-ff1efa60878d8353e1b8e36684a786bdf57963fb.zip |
test: use const for all require() calls
PR-URL: https://github.com/nodejs/node/pull/10550
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/fixtures/cluster-preload.js')
-rw-r--r-- | test/fixtures/cluster-preload.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixtures/cluster-preload.js b/test/fixtures/cluster-preload.js index 6637b418ba..26d81d8b7a 100644 --- a/test/fixtures/cluster-preload.js +++ b/test/fixtures/cluster-preload.js @@ -1,12 +1,12 @@ -var assert = require('assert'); +const assert = require('assert'); // https://github.com/nodejs/node/issues/1803 // this module is used as a preload module. It should have a parent with the // module search paths initialized from the current working directory assert.ok(module.parent); -var expectedPaths = require('module')._nodeModulePaths(process.cwd()); +const expectedPaths = require('module')._nodeModulePaths(process.cwd()); assert.deepEqual(module.parent.paths, expectedPaths); -var cluster = require('cluster'); +const cluster = require('cluster'); cluster.isMaster || process.exit(42 + cluster.worker.id); // +42 to distinguish // from exit(1) for other random reasons |