Skip to content
Permalink
Browse files

test: changed var to let in test-repl-editor

PR-URL: #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>
  • Loading branch information
jlPhillips-rms authored and MylesBorins committed Nov 12, 2019
1 parent 8792147 commit 91c6fe4b61c2f917fd1cd1adade2bdff4104a5b4
Showing with 7 additions and 7 deletions.
  1. +7 −7 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: ' '
}

0 comments on commit 91c6fe4

Please sign in to comment.
You can’t perform that action at this time.