diff --git a/spec/spellchecker-spec.jsx b/spec/spellchecker-spec.jsx index 355d9caa3..9cc423a63 100644 --- a/spec/spellchecker-spec.jsx +++ b/spec/spellchecker-spec.jsx @@ -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) diff --git a/src/nylas-env.coffee b/src/nylas-env.coffee index 20d00284f..6f1cbd860 100644 --- a/src/nylas-env.coffee +++ b/src/nylas-env.coffee @@ -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()