- <script type="text/javascript">
-// https://groups.google.com/forum/?fromgroups=#!searchin/angular/e2e$20mock|sort:date/angular/ObdxCoCObYU/KENkGVfIZYkJ
-
-angular.module('testApp', ['myApp', 'ngMockE2E' ]).
- run(function ($httpBackend) {
- console.log('mock $httpBackend', $httpBackend);
- $httpBackend.whenGET(/partials\/.*/).passThrough();
- $httpBackend.whenJSONP(/./).passThrough();
- $httpBackend.whenGET(/registration/).passThrough();
- $httpBackend.whenPOST(/registration/).passThrough();
- }
-);
-
-// mock console for IE
-if(!window.console) {
- window.console = new function() {
- this.log = function(str) {};
- this.info = function(str) {};
- this.debug = function(str) {};
- };
-}
-
-
-console.log('mock testApp');
-
- </script>