You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
define(['app','angularAMD','tourModule'],function(app,angularAMD){describe('tourModule',function(){varservice,tourService,$httpBackend,$rootScope;beforeEach(function(){angularAMD.inject(function($injector){service=$injector.get('tourInvoiceService');$rootScope=$injector.get('$rootScope');$httpBackend=$injector.get('$httpBackend');$httpBackend.expectGET('.../url/',{})$httpBackend.whenGET('.../url/',{});});});
...
it('Verify tourService.start has been called',function(){service();$httpBackend.flush();});});});
My app.js is exclusive for karma run.
TourModule is app dependency.
This is the _$httpBackend object_ on debug.
The text was updated successfully, but these errors were encountered:
If I inject $httpBackend without AngularAMD.inject and with default inject the methods(get, whenGet) exist, but the $httpBackend.flush dont find none http request to mock.
_app.js_
_tourModuleTest.js_
My app.js is exclusive for karma run.
TourModule is app dependency.
This is the _$httpBackend object_ on debug.
The text was updated successfully, but these errors were encountered: