mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +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) ->
|
||||
spellings[word]
|
||||
|
||||
describe "walkTree", ->
|
||||
describe "update", ->
|
||||
it "correctly walks a DOM tree and surrounds mispelled words", ->
|
||||
dom = document.createElement('div')
|
||||
dom.innerHTML = initialHTML
|
||||
|
@ -21,7 +21,7 @@ describe "SpellcheckComposerExtension", ->
|
|||
rootNode: dom
|
||||
whilePreservingSelection: (cb) -> cb()
|
||||
|
||||
SpellcheckComposerExtension.walkTree(editor)
|
||||
SpellcheckComposerExtension.update(editor)
|
||||
expect(dom.innerHTML).toEqual(expectedHTML)
|
||||
|
||||
describe "finalizeSessionBeforeSending", ->
|
||||
|
|
Loading…
Reference in a new issue