summaryrefslogtreecommitdiff
path: root/test/fixtures/not-main-module.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2016-12-30 18:38:06 -0500
committercjihrig <cjihrig@gmail.com>2017-01-02 18:28:18 -0500
commitff1efa60878d8353e1b8e36684a786bdf57963fb (patch)
tree31399a1732ff2b91374fdcaaf2d5d0976b6a00a7 /test/fixtures/not-main-module.js
parent1605a2e02ae6887e57292543489c76eef5c545d0 (diff)
downloadandroid-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/not-main-module.js')
-rw-r--r--test/fixtures/not-main-module.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fixtures/not-main-module.js b/test/fixtures/not-main-module.js
index 3da57f4428..de024cd92e 100644
--- a/test/fixtures/not-main-module.js
+++ b/test/fixtures/not-main-module.js
@@ -1,4 +1,4 @@
-var assert = require('assert');
+const assert = require('assert');
assert.notEqual(module, require.main, 'require.main should not == module');
assert.notEqual(module, process.mainModule,
'process.mainModule should not === module');