Here's the functions that I've used that should make everything work but it's not. Words like Texas and Reilly are being marked misspelled when they're not.
describe("Spell Check add words Tests", function () {
it("Finds the word Reilly after adding it", function () {
assert.ok(!isSpelledRight("Reilly")); //Does not find the word
addWord("Reilly");
assert.ok(isSpelledRight("Reilly")); //Does find the word
});
it("Reports that Texas is spelled right", function () {
assert.ok(isSpelledRight("Texas"));
});
Here's the functions that I've used that should make everything work but it's not. Words like Texas and Reilly are being marked misspelled when they're not.
describe("Spell Check add words Tests", function () { it("Finds the word Reilly after adding it", function () { assert.ok(!isSpelledRight("Reilly")); //Does not find the word addWord("Reilly"); assert.ok(isSpelledRight("Reilly")); //Does find the word });
});