split describe registration_type accomp
[angular-drzb] / app / js / testApp.js
1 // https://groups.google.com/forum/?fromgroups=#!searchin/angular/e2e$20mock|sort:date/angular/ObdxCoCObYU/KENkGVfIZYkJ
2
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();
10         }
11 );
12
13 // mock console for IE
14 if(!window.console) {
15         window.console = new function() {
16                 this.log = function(str) {};
17                 this.info = function(str) {};
18                 this.debug = function(str) {};
19         };
20 }
21
22
23 console.log('mock testApp');
24