阅读背景:

为什么jasmine无法比较knockout.js可观察对象,但是可以使用普通函数?

来源:互联网 

I was writing jasmine test today and had to mock an knockout.js object result and to my surprise they were not equal although objects looked identical. After eliminating properties I narrowed it down to knockout.js observable. Below are two tests knockout one is failing while the one with function is successful.I was writing jasmine test today and had to moc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: