signal-desktop/test/spellcheck_test.js

16 lines
357 B
JavaScript
Raw Normal View History

2018-11-02 18:02:53 +00:00
describe('spellChecker', () => {
it('should work', () => {
let result = null;
window.spellChecker.spellCheck(['correct'], answer => {
result = answer;
});
assert.deepEqual(result, []);
window.spellChecker.spellCheck(['fhqwgads'], answer => {
result = answer;
});
assert.deepEqual(result, ['fhqwgads']);
});
});