mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 16:25:52 +08:00
fix(specs): Spec fixes for 37e1f6bb
This commit is contained in:
parent
d78db0169c
commit
fb41a8184e
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ describe "SpellcheckComposerExtension", ->
|
||||||
spyOn(SpellcheckComposerExtension, 'isMisspelled').andCallFake (word) ->
|
spyOn(SpellcheckComposerExtension, 'isMisspelled').andCallFake (word) ->
|
||||||
spellings[word]
|
spellings[word]
|
||||||
|
|
||||||
describe "walkTree", ->
|
describe "update", ->
|
||||||
it "correctly walks a DOM tree and surrounds mispelled words", ->
|
it "correctly walks a DOM tree and surrounds mispelled words", ->
|
||||||
dom = document.createElement('div')
|
dom = document.createElement('div')
|
||||||
dom.innerHTML = initialHTML
|
dom.innerHTML = initialHTML
|
||||||
|
@ -21,7 +21,7 @@ describe "SpellcheckComposerExtension", ->
|
||||||
rootNode: dom
|
rootNode: dom
|
||||||
whilePreservingSelection: (cb) -> cb()
|
whilePreservingSelection: (cb) -> cb()
|
||||||
|
|
||||||
SpellcheckComposerExtension.walkTree(editor)
|
SpellcheckComposerExtension.update(editor)
|
||||||
expect(dom.innerHTML).toEqual(expectedHTML)
|
expect(dom.innerHTML).toEqual(expectedHTML)
|
||||||
|
|
||||||
describe "finalizeSessionBeforeSending", ->
|
describe "finalizeSessionBeforeSending", ->
|
||||||
|
|
Loading…
Reference in a new issue