fix(spellchecker): Use cross-platform misspellings, fix lint error

This commit is contained in:
Halla Moore 2016-10-12 17:06:35 -07:00
parent dc84d9af55
commit 2b63e343ae
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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()