Skip to content

Commit

Permalink
test: changed var to let in test-repl-editor
Browse files Browse the repository at this point in the history
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 Dec 17, 2019
1 parent 8792147 commit 91c6fe4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel/test-repl-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
},
Expand Down Expand Up @@ -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: ' '
}
Expand Down

0 comments on commit 91c6fe4

Please sign in to comment.