mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-12-12 20:36:29 +01:00
fix(spellchecker): Use cross-platform misspellings, fix lint error
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user