codecombat/test/demo/views/achievement/UserAchievements.demo.coffee

19 lines
578 B
CoffeeScript
Raw Normal View History

2014-07-06 17:16:00 -04:00
Achievement = require 'models/Achievement'
Achievements = require 'collections/AchievementCollection'
2014-07-06 17:38:57 -04:00
UserAchievementsView = require 'views/user/achievements'
2014-07-06 17:16:00 -04:00
EarnedAchievement = require 'models/EarnedAchievement'
EarnedAchievementCollection = require 'collections/EarnedAchievementCollection'
2014-07-06 17:38:57 -04:00
fixtures = require '../../fixtures/achievements'
2014-07-06 17:16:00 -04:00
2014-07-06 17:38:57 -04:00
module.exports = ->
view = new UserAchievementsView {}, me.get '_id'
2014-07-07 06:44:44 -04:00
request = jasmine.Ajax.requests.mostRecent()
request.response
status: 200
responseText: JSON.stringify fixtures.earnedAchievements
2014-07-06 17:38:57 -04:00
view.render()