排气标记创建单元测试用例错误

时间:2019-02-07 10:58:28

标签: angularjs unit-testing testcase

我正在使用启动进行标记,服务调用成功后,我将触发window.emitToExhaust("Page.viewed", dashboardDigitalData);传递用于标记的值。它在代码标签中运行正常,但是由于这个原因,我的测试用例给出了错误,说undefined is not a function (evaluating window.emitToExhaust)

window.emitToExhaust方法已被全局声明。但是我还是出错了。

将提供任何帮助。

0 个答案:

没有答案