summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-editor.js
diff options
context:
space:
mode:
authorSebastiaan Deckers <sebdeckers83@gmail.com>2017-07-10 20:55:21 -0400
committerRefael Ackermann <refack@gmail.com>2017-07-21 15:13:47 -0400
commitbb294059040def8e8c0b1719cc17f6537ab5cb39 (patch)
treeacc6b7bcf88da8e6078fa5ab91f6718289f32bbf /test/parallel/test-repl-editor.js
parent4f875222445b07016a8294fa5a5bf7418c735489 (diff)
downloadnode-new-bb294059040def8e8c0b1719cc17f6537ab5cb39.tar.gz
lib,src: fix consistent spacing inside braces
PR-URL: https://github.com/nodejs/node/pull/14162 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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 678d6d5c6d..091eaec1ab 100644
--- a/test/parallel/test-repl-editor.js
+++ b/test/parallel/test-repl-editor.js
@@ -10,7 +10,7 @@ const repl = require('repl');
const terminalCode = '\u001b[1G\u001b[0J> \u001b[3G';
const terminalCodeRegex = new RegExp(terminalCode.replace(/\[/g, '\\['), 'g');
-function run({input, output, event, checkTerminalCodes = true}) {
+function run({ input, output, event, checkTerminalCodes = true }) {
const stream = new common.ArrayStream();
let found = '';
@@ -45,22 +45,22 @@ const tests = [
{
input: '',
output: '\n(To exit, press ^C again or type .exit)',
- event: {ctrl: true, name: 'c'}
+ event: { ctrl: true, name: 'c' }
},
{
input: 'var i = 1;',
output: '',
- event: {ctrl: true, name: 'c'}
+ event: { ctrl: true, name: 'c' }
},
{
input: 'var i = 1;\ni + 3',
output: '\n4',
- event: {ctrl: true, name: 'd'}
+ event: { ctrl: true, name: 'd' }
},
{
input: ' var i = 1;\ni + 3',
output: '\n4',
- event: {ctrl: true, name: 'd'}
+ event: { ctrl: true, name: 'd' }
},
{
input: '',
@@ -73,7 +73,7 @@ const tests = [
tests.forEach(run);
// Auto code alignment for .editor mode
-function testCodeAligment({input, cursor = 0, line = ''}) {
+function testCodeAligment({ input, cursor = 0, line = '' }) {
const stream = new common.ArrayStream();
const outputStream = new common.ArrayStream();
@@ -93,7 +93,7 @@ function testCodeAligment({input, cursor = 0, line = ''}) {
assert.strictEqual(line, replServer.line);
assert.strictEqual(cursor, replServer.cursor);
- replServer.write('', {ctrl: true, name: 'd'});
+ replServer.write('', { ctrl: true, name: 'd' });
replServer.close();
// Ensure that empty lines are not saved in history
assert.notStrictEqual(replServer.history[0].trim(), '');