summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-editor.js
diff options
context:
space:
mode:
authorJL Phillips <jlphillips@rms.com>2019-11-12 16:33:36 +0000
committerGireesh Punathil <gpunathi@in.ibm.com>2019-11-18 13:02:42 +0530
commit50902d00ad06ba734f7e69b17fa37a54d1b79e8f (patch)
tree229612054e8abe34ec7b88539fed13307fdef4e4 /test/parallel/test-repl-editor.js
parent411c1a679d7a6c47dadc257a5ed35b6f7589688b (diff)
downloadandroid-node-v8-50902d00ad06ba734f7e69b17fa37a54d1b79e8f.tar.gz
android-node-v8-50902d00ad06ba734f7e69b17fa37a54d1b79e8f.tar.bz2
android-node-v8-50902d00ad06ba734f7e69b17fa37a54d1b79e8f.zip
test: changed var to let in test-repl-editor
PR-URL: https://github.com/nodejs/node/pull/30443 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-repl-editor.js')
-rw-r--r--test/parallel/test-repl-editor.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/parallel/test-repl-editor.js b/test/parallel/test-repl-editor.js
index dbc59742ac..969f6172b3 100644
--- a/test/parallel/test-repl-editor.js
+++ b/test/parallel/test-repl-editor.js
@@ -49,17 +49,17 @@ const tests = [
event: { ctrl: true, name: 'c' }
},
{
- input: 'var i = 1;',
+ input: 'let i = 1;',
output: '',
event: { ctrl: true, name: 'c' }
},
{
- input: 'var i = 1;\ni + 3',
+ input: 'let i = 1;\ni + 3',
output: '\n4',
event: { ctrl: true, name: 'd' }
},
{
- input: ' var i = 1;\ni + 3',
+ input: ' let i = 1;\ni + 3',
output: '\n4',
event: { ctrl: true, name: 'd' }
},
@@ -102,20 +102,20 @@ function testCodeAlignment({ input, cursor = 0, line = '' }) {
const codeAlignmentTests = [
{
- input: 'var i = 1;\n'
+ input: 'let i = 1;\n'
},
{
- input: ' var i = 1;\n',
+ input: ' let i = 1;\n',
cursor: 2,
line: ' '
},
{
- input: ' var i = 1;\n',
+ input: ' let i = 1;\n',
cursor: 5,
line: ' '
},
{
- input: ' var i = 1;\n var j = 2\n',
+ input: ' let i = 1;\n let j = 2\n',
cursor: 2,
line: ' '
}