1 // https://groups.google.com/forum/?fromgroups=#!searchin/angular/e2e$20mock|sort:date/angular/ObdxCoCObYU/KENkGVfIZYkJ
3 angular.module('testApp', ['myApp', 'ngMockE2E' ]).
4 run(function ($httpBackend) {
5 console.log('mock $httpBackend', $httpBackend);
6 $httpBackend.whenGET(/partials\/.*/).passThrough();
7 $httpBackend.whenJSONP(/./).passThrough();
8 $httpBackend.whenGET(/registration/).passThrough();
9 $httpBackend.whenPOST(/registration/).passThrough();
13 // mock console for IE
15 window.console = new function() {
16 this.log = function(str) {};
17 this.info = function(str) {};
18 this.debug = function(str) {};
23 console.log('mock testApp');