mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
Fix CourseVictoryModal.spec
This commit is contained in:
parent
705463615b
commit
b3663196d7
1 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,12 @@ describe 'CourseVictoryModal', ->
|
|||
modal.classroom.fakeRequests[0].respondWith({
|
||||
status: 200, responseText: factories.makeClassroom().stringify()
|
||||
})
|
||||
if me.fakeRequests
|
||||
lastRequest = _.last(me.fakeRequests)
|
||||
if not lastRequest.response
|
||||
lastRequest.respondWith({
|
||||
status: 200, responseText: factories.makeUser().stringify()
|
||||
})
|
||||
nextLevelRequest = modal.nextLevel.fakeRequests[0]
|
||||
|
||||
describe 'given a course level with a next level and no item or hero rewards', ->
|
||||
|
|
Loading…
Reference in a new issue