mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-06 13:03:10 +08:00
fix(spellchecker): Use cross-platform misspellings, fix lint error
This commit is contained in:
parent
dc84d9af55
commit
2b63e343ae
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ describe("Spellchecker", function spellcheckerTests() {
|
|||
|
||||
it("knows whether a word is misspelled or not", () => {
|
||||
const correctlySpelled = ["hello", "world", "create", "goodbye", "regards"]
|
||||
const misspelled = ["mispelled", "particularily", "welp", "adlkdgiekdl"]
|
||||
const misspelled = ["mispelled", "particularily", "kelfiekd", "adlkdgiekdl"]
|
||||
for (const word of correctlySpelled) {
|
||||
expect(Spellchecker.isMisspelled(word)).toEqual(false);
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ describe("Spellchecker", function spellcheckerTests() {
|
|||
})
|
||||
|
||||
describe("when a custom word is added", () => {
|
||||
this.customWord = "Halla"
|
||||
this.customWord = "becaause"
|
||||
|
||||
beforeEach(() => {
|
||||
expect(Spellchecker.isMisspelled(this.customWord)).toEqual(true)
|
||||
|
|
|
@ -188,7 +188,7 @@ class NylasEnvConstructor
|
|||
@getCurrentWindow().setMenuBarVisibility(false)
|
||||
|
||||
# initialize spell checking
|
||||
@spellchecker = require('./spellchecker')
|
||||
@spellchecker = require('./spellchecker').default
|
||||
|
||||
@packages.onDidActivateInitialPackages => @watchThemes()
|
||||
@windowEventHandler = new WindowEventHandler()
|
||||
|
|
Loading…
Reference in a new issue