我正在使用angular2和uirouter进行路由。我在应用程序中成功实现了uirouter模块。但是当我尝试测试我的应用程序时出现问题。我在哪里使用业力,茉莉和启动它使用npm test。但遇到ERROR:Can't resolve all parameters for UIRouter: (?, ?). 我已经在*.spec.ts文件中导入了“UIRouter”,并将其添加到provider
toEqual不按预期工作时,我尝试测试Header对象。 我隔离在下面的示例中的问题: const foo = new Headers();
const bar = new Headers();
bar.append('some', 'value'); // bar is mutated
expect(foo).toEqual(bar); // returns true...
如何规范
要做到这一点,最好的方法就是使用.only标志吗? 但是,如果我用describe.only(,我得到 Uncaught TypeError: describe.only is not a function
所以,我怎么能在同一时间运行/调试只有一个测试? 这里是我的karma.conf.js文件: const path = require('path');
module.exports