阅读背景:

AngularJS - 使用$ q保证的函数在测试时无法解析

来源:互联网 

I am using the jsonapi-serializer library to deserialize API data. I promisified the callback using angular's $q constructor and wrapped that in a service, this works fine on the browser, but when I test it using jasmine on the karma runner, the promise doesn't resolve. This is the method on the service (Notice I'm using TypeScript)I am using the jsonapi-serializer library to de




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

分享到: