From 2b63e343ae50065c3f7ead303269439b45f3f466 Mon Sep 17 00:00:00 2001 From: Halla Moore Date: Wed, 12 Oct 2016 17:06:35 -0700 Subject: [PATCH] fix(spellchecker): Use cross-platform misspellings, fix lint error --- spec/spellchecker-spec.jsx | 4 ++-- src/nylas-env.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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()