From 39aa7b6ebed91cf8bc12fc96b55bd3ca1ab7cd38 Mon Sep 17 00:00:00 2001 From: Eddie Antonio Santos Date: Fri, 11 Jan 2019 11:19:24 -0700 Subject: [PATCH] Place { on same line as (. --- .../headless/worker-predict-dummy.js | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/common/predictive-text/unit_tests/headless/worker-predict-dummy.js b/common/predictive-text/unit_tests/headless/worker-predict-dummy.js index 0c4ed00f71..e47b05e83a 100644 --- a/common/predictive-text/unit_tests/headless/worker-predict-dummy.js +++ b/common/predictive-text/unit_tests/headless/worker-predict-dummy.js @@ -19,14 +19,12 @@ describe('LMLayerWorker dummy model', function() { rightContextCodeUnits: 0 }; - var model = new DummyModel( - { - maxLeftContextCodeUnits: 64, - }, - { - configuration: configuration, - } - ); + var model = new DummyModel({ + maxLeftContextCodeUnits: 64, + }, + { + configuration: configuration, + }); assert.deepEqual(model.configuration, configuration); }); @@ -73,19 +71,16 @@ describe('LMLayerWorker dummy model', function() { var model = new DummyModel(defaultCapabilities()); - var suggestions = model.predict( - // Type a 't' - { - insert: 't', - deleteLeft: 0, - }, - { - left: "I'm a little ", - startOfBuffer: true, - endOfBuffer: true, - }, - expectedSuggestions - ); + // Type a 't' + var suggestions = model.predict({ + insert: 't', + deleteLeft: 0, + }, + { + left: "I'm a little ", + startOfBuffer: true, + endOfBuffer: true, + }, expectedSuggestions); assert.deepEqual(suggestions, expectedSuggestions); });