mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(specs): Update composer-view-spec to use renamed functions
This commit is contained in:
parent
bbd2d67112
commit
5be36f8572
1 changed files with 2 additions and 2 deletions
|
@ -348,11 +348,11 @@ describe "populated composer", ->
|
|||
@body = @composer.refs[Fields.Body]
|
||||
spyOn(@body, "focus")
|
||||
spyOn(React, "findDOMNode").andCallThrough()
|
||||
spyOn(@composer, "_applyFocusedField").andCallThrough()
|
||||
spyOn(@composer, "_applyFieldFocus").andCallThrough()
|
||||
|
||||
it "can focus on the subject", ->
|
||||
@composer.setState focusedField: Fields.Subject
|
||||
expect(@composer._applyFocusedField.calls.length).toBe 1
|
||||
expect(@composer._applyFieldFocus.calls.length).toBe 1
|
||||
expect(React.findDOMNode).toHaveBeenCalled()
|
||||
calls = _.filter React.findDOMNode.calls, (call) ->
|
||||
call.args[0].props.name == "subject"
|
||||
|
|
Loading…
Reference in a new issue