]> khamidou — GitHub mirrors - kite.git/commitdiff
poked e2e and unit tests
authorkarim hamidou <khamidou@gmail.com>
Fri, 11 Oct 2013 15:38:01 +0000 (17:38 +0200)
committerkarim hamidou <khamidou@gmail.com>
Fri, 11 Oct 2013 15:38:01 +0000 (17:38 +0200)
src/front/app/js/app.js
src/front/test/e2e/scenarios.js
src/front/test/unit/controllersSpec.js
src/front/test/unit/filtersSpec.js
src/front/test/unit/servicesSpec.js

index 79193b3b33de8c2d194bb977c73aebb9a329da0d..30baf24927112ae93621b442e30004d7ae44a124 100644 (file)
@@ -4,7 +4,7 @@
 // Declare app level module which depends on filters, and services
 angular.module('KiteMail', ['KiteMail.filters', 'KiteMail.services', 'KiteMail.directives', 'KiteMail.controllers']).
   config(['$routeProvider', function($routeProvider) {
-    $routeProvider.when('/', {templateUrl: 'partials/mailbox.html', controller: 'InboxListController'});
+    $routeProvider.when('/mail', {templateUrl: 'partials/mailbox.html', controller: 'InboxListController'});
     $routeProvider.when('/login', {templateUrl: 'partials/login.html', controller: 'LoginController'});
-    $routeProvider.otherwise({redirectTo: '/'});
+    $routeProvider.otherwise({redirectTo: '/login'});
   }]);
index e4c0fb6cfb14923d1d420dcfbb4c46e351701e99..0ba781ebed1db32583282e7e7e8a15a9cb4bd1a5 100644 (file)
@@ -8,9 +8,9 @@ describe('my app', function() {
       browser().navigateTo('../../app/index.html');
     });
 
-    it('should redirect index.html to index.html#/phones', function() {
+    it('should redirect index.html to index.html#/login', function() {
         browser().navigateTo('../../app/index.html');
-        expect(browser().location().url()).toBe('/phones');
+        expect(browser().location().url()).toBe('/login');
     });
 /*
   it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
index 23f6b0948c2dc809330b7b03013b982cae720325..295c9f2fa201e116d8f5b5ffdcbe5f1413df6d59 100644 (file)
@@ -3,7 +3,7 @@
 /* jasmine specs for controllers go here */
 
 describe('controllers', function(){
-  beforeEach(module('myApp.controllers'));
+  beforeEach(module('KiteMail.controllers'));
 
 
   it('should ....', inject(function() {
index 19af3293a1fb798502576ccb4ef37a06d2ab469c..fa5e9b9533a4c9662b87656449b362cc690a8445 100644 (file)
@@ -3,7 +3,7 @@
 /* jasmine specs for filters go here */
 
 describe('filter', function() {
-  beforeEach(module('myApp.filters'));
+  beforeEach(module('KiteMail.filters'));
 
 
   describe('interpolate', function() {
index 3864c8d9bbff3ed261012a97a894ef8ed281fe0c..2425dc4f49cc7eb8f83be8cb7bbfd6658b67a68f 100644 (file)
@@ -3,7 +3,7 @@
 /* jasmine specs for services go here */
 
 describe('service', function() {
-  beforeEach(module('myApp.services'));
+  beforeEach(module('KiteMail.services'));
 
 
   describe('version', function() {