Place { on same line as (.

This commit is contained in:
Eddie Antonio Santos 2019-01-11 11:19:24 -07:00
parent 6cf84f09b5
commit 39aa7b6ebe
No known key found for this signature in database
GPG key ID: DD411EA4D9509D87

View file

@ -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);
});