angularjs单元测试错误与角度缓存模块

时间:2016-07-13 18:47:05

标签: angularjs unit-testing jasmine

   describe("unit test", function () {
        it('should have a GuestsAndRoomsController controller', function (){
            expect(guestsAndRoomsController).not.toBe(null);
        });
        it('should have default editPackageInclusions flag', function(){
            expect(guestsAndRoomsController).toEqual(null);

        });
    })

模块与angular-cache有依赖关系,当我运行此单元测试时,会弹出如下错误:

  

defaultCache已经存在!在node_modules / angular-cache / dist / angular-cache.js

0 个答案:

没有答案