summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-envvars.js
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2016-01-13 21:42:45 +0100
committerRoman Reiss <me@silverwind.io>2016-01-13 23:16:17 +0100
commitd1aabd626428cec65e5f54c04d9e3446d1e4d3b7 (patch)
tree9a4d4de19204b8b50d496dd6046a897f107bcf4d /test/parallel/test-repl-envvars.js
parentec8e0ae697d96c417bda0bbe5be9712cf5923b1f (diff)
downloadandroid-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-repl-envvars.js')
-rw-r--r--test/parallel/test-repl-envvars.js50
1 files changed, 26 insertions, 24 deletions
diff --git a/test/parallel/test-repl-envvars.js b/test/parallel/test-repl-envvars.js
index 2c34bbf2da..759b4e15a1 100644
--- a/test/parallel/test-repl-envvars.js
+++ b/test/parallel/test-repl-envvars.js
@@ -8,30 +8,32 @@ const REPL = require('internal/repl');
const assert = require('assert');
const inspect = require('util').inspect;
-const tests = [{
- env: {},
- expected: { terminal: true, useColors: true }
-},
-{
- env: { NODE_DISABLE_COLORS: '1' },
- expected: { terminal: true, useColors: false }
-},
-{
- env: { NODE_NO_READLINE: '1' },
- expected: { terminal: false, useColors: false }
-},
-{
- env: { TERM: 'dumb' },
- expected: { terminal: true, useColors: false }
-},
-{
- env: { NODE_NO_READLINE: '1', NODE_DISABLE_COLORS: '1' },
- expected: { terminal: false, useColors: false }
-},
-{
- env: { NODE_NO_READLINE: '0' },
- expected: { terminal: true, useColors: true }
-}];
+const tests = [
+ {
+ env: {},
+ expected: { terminal: true, useColors: true }
+ },
+ {
+ env: { NODE_DISABLE_COLORS: '1' },
+ expected: { terminal: true, useColors: false }
+ },
+ {
+ env: { NODE_NO_READLINE: '1' },
+ expected: { terminal: false, useColors: false }
+ },
+ {
+ env: { TERM: 'dumb' },
+ expected: { terminal: true, useColors: false }
+ },
+ {
+ env: { NODE_NO_READLINE: '1', NODE_DISABLE_COLORS: '1' },
+ expected: { terminal: false, useColors: false }
+ },
+ {
+ env: { NODE_NO_READLINE: '0' },
+ expected: { terminal: true, useColors: true }
+ }
+];
function run(test) {
const env = test.env;