0
it 'computes correctly when on & off have a list at cronRange[4]', ->
@component.set('cronRanges', [Ember.Object.create({
on: "* * * 3 3,1,5"
off: "* * * 3 3,1,5"
})])
@component.set('dayOfWeek', 2)
expect(@component.get('inRange')).to.be.false
@component.set('dayOfWeek', 5)
expect(@component.get('inRange')).to.be.true
@component.set('dayOfWeek', 1)
expect(@component.get('inRange')).to.be.true
@component.set('dayOfWeek', 3)
expect(@component.get('inRange')).to.be.true
这是一个ember单元测试,失败的错误是此问题的标题。确保在此测试中调用done()回调