2018-11-02 18:02:53 +00:00
|
|
|
describe('spellChecker', () => {
|
|
|
|
it('should work', () => {
|
2019-08-22 21:11:36 +00:00
|
|
|
let result = null;
|
|
|
|
|
|
|
|
window.spellChecker.spellCheck(['correct'], answer => {
|
|
|
|
result = answer;
|
|
|
|
});
|
|
|
|
assert.deepEqual(result, []);
|
|
|
|
|
|
|
|
window.spellChecker.spellCheck(['fhqwgads'], answer => {
|
|
|
|
result = answer;
|
|
|
|
});
|
|
|
|
assert.deepEqual(result, ['fhqwgads']);
|
2017-05-18 19:34:09 +00:00
|
|
|
});
|
|
|
|
});
|