我试图在 plunker 中展示 mocha 的示例,但它给了我角度模拟未定义的问题。我尝试复制和粘贴凉亭角度模拟无济于事。
beforeEach(function(){
angular.mock.module('plunker');
});
来自角度模拟的错误代码说窗口未定义
(window.beforeEach || window.setup)(function() {
annotatedFunctions = [];
currentSpec = this;
});