mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-26 00:58:00 -05:00
18 lines
578 B
CoffeeScript
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()
|