% if ( $test ) {
<script src="/test/lib/angular/angular-mocks.js"></script>
- <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>
+ <script src="/test/e2e/testApp.js"></script>
% }
</body>
--- /dev/null
+// 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');
+