【发布时间】:2015-04-02 07:38:19
【问题描述】:
我试图在 plunker 中展示 mocha 的示例,但它给了我角度模拟未定义的问题。我尝试复制和粘贴 bower angular mocks 无济于事。
beforeEach(function(){
angular.mock.module('plunker');
});
来自 angular-mocks 的错误代码显示窗口未定义
(window.beforeEach || window.setup)(function() {
annotatedFunctions = [];
currentSpec = this;
});
【问题讨论】:
标签: mocha.js angular-mock plunker