0
我做了以下测试。CoffeeScript中的BusterJs测试
assert = buster.assert
buster.testCase 'BaseChart',
before: ->
@el = sinon.spy()
@$el = [@el]
console.log(@$el)
##[LOG] [function spy() {}]
'updates when the model changed': ->
console.log(@$el)
##[LOG] undefined
在''之前''里面有'@'和''模型改变'时更新'? –
这似乎是一个克星测试案例。 –
哟@AndreasKöberle你可以标记这个答案 – jcollum