codecombat/test/demo/views/achievement/UserAchievements.demo.coffee
2014-07-07 12:47:32 +02:00

18 lines
578 B
CoffeeScript

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