From 266bd4fab0e269a5d7541d13ea47204bc4d7dceb Mon Sep 17 00:00:00 2001 From: Diosney Date: Sat, 13 Jun 2015 17:15:38 -0400 Subject: [PATCH] repl: fixed code style to match guidelines. --- test/simple/test-repl-tab-complete.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/simple/test-repl-tab-complete.js b/test/simple/test-repl-tab-complete.js index ea977c908da2..ea79df511e25 100644 --- a/test/simple/test-repl-tab-complete.js +++ b/test/simple/test-repl-tab-complete.js @@ -221,7 +221,7 @@ var testMe2 = repl.start({ completer: function customCompleter(line, cb) { var completions = 'aaa aa1 aa2 bbb bb1 bb2 bb3 ccc ddd eee'.split(' '); var hits = completions.filter(function (item) { - return item.indexOf(line) == 0; + return item.indexOf(line) === 0; }); // Show all completions if none was found. cb([hits.length ? hits : completions, line]); @@ -230,10 +230,13 @@ var testMe2 = repl.start({ putIn2.run(['.clear']); -// On empty line should output all the custom completions without complete anything. +// On empty line should output all the custom completions +// without complete anything. putIn2.run(['']); testMe2.complete('', function(error, data) { - assert.deepEqual(data, ['aaa aa1 aa2 bbb bb1 bb2 bb3 ccc ddd eee'.split(' '), '']); + assert.deepEqual(data, [ + 'aaa aa1 aa2 bbb bb1 bb2 bb3 ccc ddd eee'.split(' '), '' + ]); }); // On `a` should output `aaa aa1 aa2` and complete until `aa`.