阅读背景:

嘲笑window.location。href在Javascript中

来源:互联网 

I have some unit tests for a function that makes use of the window.location.href -- not ideal I would far rather have passed this in but its not possible in the implementation. I'm just wondering if its possible to mock this value without actually causing my test runner page to actually go to the URL.I have some unit tests for a function that make




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

分享到: