UNPKG

passivemodel

Version:

Model that can be used on both Client & Server

12 lines (10 loc) 324 B
global.expect = require 'expect.js' global.p = (args...) -> console.log args... global.Model = require '../lib/model' # Namespace for temporarry objects. global.Tmp = {} beforeEach -> global.Tmp = {} # Stubbing class loading. Model.getClass = (name) -> Tmp[name] || (throw new Error "can't get '#{name}' class!")