b19659f5ac
* 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
15 lines
357 B
JavaScript
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']);
|
|
});
|
|
});
|