mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-22 07:37:40 +00:00
Place { on same line as (.
This commit is contained in:
parent
6cf84f09b5
commit
39aa7b6ebe
1 changed files with 16 additions and 21 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue