mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 11:32:25 -05:00
13 lines
465 B
CoffeeScript
13 lines
465 B
CoffeeScript
LevelSessionCodeView = require 'views/common/LevelSessionCodeView'
|
|
LevelSession = require 'models/LevelSession'
|
|
|
|
levelSessionData = require './level-session.fixture'
|
|
levelData = require './level.fixture';
|
|
|
|
module.exports = ->
|
|
session = new LevelSession(levelSessionData)
|
|
v = new LevelSessionCodeView({session:session})
|
|
request = jasmine.Ajax.requests.mostRecent()
|
|
request.respondWith({status: 200, responseText: JSON.stringify(levelData)})
|
|
v.render()
|
|
v
|