fix(common/lmlayer): arrow fn -> fn expr (IE11 compat)

This commit is contained in:
Eddie Antonio Santos 2020-04-06 11:52:14 -06:00
parent aa1552fbe8
commit 42bc0197fb
No known key found for this signature in database
GPG key ID: DD411EA4D9509D87

View file

@ -67,7 +67,9 @@ describe('LMLayer using the trie model', function () {
return lmLayer.predict(type('ï'), atEndOfBuffer('na'));
}).then(function (rawSuggestions) {
// Discard the keep suggestion
var suggestions = rawSuggestions.filter(s => s.tag != 'keep')
var suggestions = rawSuggestions.filter(function skimKeepSuggestions(s) {
return s.tag !== 'keep'
})
assert.isAtLeast(suggestions.length, 1)
// We SHOULD get 'naïve' suggested