mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
28 lines
652 B
CoffeeScript
28 lines
652 B
CoffeeScript
PatchesView = require 'views/editor/patches_view'
|
|
CocoModel = require 'models/CocoModel'
|
|
|
|
class BlandModel extends CocoModel
|
|
@className: 'Bland'
|
|
@schema: {
|
|
type: 'object'
|
|
additionalProperties: false
|
|
properties:
|
|
number: {type: 'number'}
|
|
object: {type: 'object'}
|
|
string: {type: 'string'}
|
|
_id: {type: 'string'}
|
|
}
|
|
urlRoot: '/db/bland'
|
|
|
|
|
|
module.exports = ->
|
|
model = new BlandModel({_id:'12345'})
|
|
v = new PatchesView(model)
|
|
v.load()
|
|
|
|
# doesn't quite work yet. Intercepts a mixpanel request instead
|
|
r = jasmine.Ajax.requests.mostRecent()
|
|
r.send({statusCode:200, responseText:"[]"})
|
|
v.render()
|
|
v
|
|
|