mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 15:17:40 +00:00
fix(common/lmlayer): use IE11-friendly syntax
This commit is contained in:
parent
c33524e078
commit
4e8d128ba8
1 changed files with 3 additions and 3 deletions
|
|
@ -67,11 +67,11 @@ describe('LMLayer using the trie model', function () {
|
|||
return lmLayer.predict(type('ï'), atEndOfBuffer('na'));
|
||||
}).then(function (rawSuggestions) {
|
||||
// Discard the keep suggestion
|
||||
let suggestions = rawSuggestions.filter(s => s.tag != 'keep')
|
||||
var suggestions = rawSuggestions.filter(s => s.tag != 'keep')
|
||||
assert.isAtLeast(suggestions.length, 1)
|
||||
|
||||
// We SHOULD get 'naïve' suggested, despite never typing a diaeresis.
|
||||
let topSuggestion = suggestions[0];
|
||||
// We SHOULD get 'naïve' suggested
|
||||
var topSuggestion = suggestions[0];
|
||||
assert.equal(topSuggestion.displayAs, "naïve")
|
||||
assert.include(topSuggestion.transform.insert, "ïve")
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue