mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-03 04:17:12 -05:00
23 lines
No EOL
602 B
CoffeeScript
23 lines
No EOL
602 B
CoffeeScript
AuthModal = require 'views/core/AuthModal'
|
|
RecoverModal = require 'views/core/RecoverModal'
|
|
|
|
describe 'AuthModal', ->
|
|
|
|
modal = null
|
|
|
|
beforeEach ->
|
|
modal = new AuthModal()
|
|
modal.render()
|
|
|
|
afterEach ->
|
|
modal.stopListening()
|
|
|
|
it 'opens the recover modal when you click the recover link', ->
|
|
spyOn(modal, 'openModalView')
|
|
modal.$el.find('#link-to-recover').click()
|
|
expect(modal.openModalView.calls.count()).toEqual(1)
|
|
args = modal.openModalView.calls.argsFor(0)
|
|
expect(args[0] instanceof RecoverModal).toBeTruthy()
|
|
|
|
it '(demo)', ->
|
|
jasmine.demoModal(modal) |