mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-28 10:33:39 +00:00
enable spellchecker via config for test
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
const ConfigUtil = require('js/utils/config-util.js');
|
||||
const SetupSpellChecker = require('js/spellchecker')
|
||||
|
||||
describe('test spell checker', function () {
|
||||
SetupSpellChecker.init(true)
|
||||
ConfigUtil.setConfigItem('enableSpellchecker', true);
|
||||
SetupSpellChecker.init() // re-initialize after setting update
|
||||
|
||||
const spellCheckHandler = SetupSpellChecker.SpellCheckHandler
|
||||
|
||||
it('mark misspelled word', function () {
|
||||
expect(spellCheckHandler.isMisspelled('helpe')).toBe(true)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user