阅读背景:

如何模拟指令以启用高级指令的单元测试?

来源:互联网 

In our app we have several layers of nested directives. I'm trying to write some unit tests for the top level directives. I've mocked in stuff that the directive itself needs, but now I'm running into errors from the lower level directives. In my unit tests for the top level directive, I don't want to have to worry about what is going on in the lower level directives. I just want to mock the lower level directive and basically have it do nothing so I can be testing the top level directive in isolation.In our app we have several layers of nested dir




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

分享到: