我有以下 EmberJS/Konacha 代码。有谁知道为什么测试没有通过?
编辑:
我添加了测试属性值而不是引用的测试用例。
#= require ../spec_helper
describe "Zaptax.v2014.App.AnswersLookup", ->
beforeEach( ->
Test.store = TestUtil.lookupStore()
)
it 'finds the answer by reference', ->
page = Test.store.push Zaptax.v2014.App.PageModel, {id: 666, sequence: 123}
assert.equal Test.store.find('page', 666).get('sequence'), 123
回报:
Failed: Zaptax.v2014.App.AnswersLookup finds the answer by reference
AssertionError: expected undefined to equal 123