--- /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');
+
expect(r.count()).toBe(4);
// expect(r.row(0)).toEqual({});
});
+
+ });
+
+ describe('registration_type accomp', function() {
var registration_url;
element('#edit-registration').click();
expect(browser().location().url()).toMatch(/registration/);
registration_url = browser().location().url();
- console.log('registration_url', registration_url);
+ //dump('registration_url', registration_url);
});
it('accomp finish registration', function() {
+++ /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');
-