signal-desktop/test/spellcheck_test.js
Scott Nonnenberg b19659f5ac Address beta feedback
* Use signal blue for search box focus outline
* Reduce debounce for draft saves
* Be less aggressive in our scrolling corrections
* Lightbox: Ensure that a tall image is still fully visible
* Fix spell checking after Electron API breaking changes
* Fix link preview image generation
* Message highlight: Move to border in signal blue
2019-08-22 17:11:36 -04:00

15 lines
357 B
JavaScript

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']);
});
});