mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Fix client tests when you go to /test/views
This commit is contained in:
parent
ffc2e42038
commit
355b5925c8
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ describe 'LevelEditView', ->
|
|||
view = new LevelEditView({}, 'something')
|
||||
request = jasmine.Ajax.requests.first()
|
||||
request.respondWith {status: 200, responseText: JSON.stringify(emptyLevel)}
|
||||
me.set('anonymous', false) # otherwise button may be disabled an not fire
|
||||
view.render()
|
||||
spyOn(view, 'openModalView')
|
||||
view.$el.find('#revert-button').click()
|
||||
|
|
Loading…
Reference in a new issue