阅读背景:

对构造函数中的方法调用进行监视

来源:互联网 

I want to test whether the following method is called with in my Javascript object constructor. From what I have seen in the Jasmine documentation, I can spy on a constructor method and I can spy on methods after an object has been instantiated, but I can't seem to be able to spy on a method before the object is constructed.I want to test whether the following method is




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

分享到: