mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-02 11:58:10 -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
|