From fd9ec23952207d5c21af33f797775fc0466cf657 Mon Sep 17 00:00:00 2001 From: karim hamidou Date: Fri, 11 Oct 2013 17:38:01 +0200 Subject: [PATCH] poked e2e and unit tests --- src/front/app/js/app.js | 4 ++-- src/front/test/e2e/scenarios.js | 4 ++-- src/front/test/unit/controllersSpec.js | 2 +- src/front/test/unit/filtersSpec.js | 2 +- src/front/test/unit/servicesSpec.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/front/app/js/app.js b/src/front/app/js/app.js index 79193b3..30baf24 100644 --- a/src/front/app/js/app.js +++ b/src/front/app/js/app.js @@ -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'}); }]); diff --git a/src/front/test/e2e/scenarios.js b/src/front/test/e2e/scenarios.js index e4c0fb6..0ba781e 100644 --- a/src/front/test/e2e/scenarios.js +++ b/src/front/test/e2e/scenarios.js @@ -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() { diff --git a/src/front/test/unit/controllersSpec.js b/src/front/test/unit/controllersSpec.js index 23f6b09..295c9f2 100644 --- a/src/front/test/unit/controllersSpec.js +++ b/src/front/test/unit/controllersSpec.js @@ -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() { diff --git a/src/front/test/unit/filtersSpec.js b/src/front/test/unit/filtersSpec.js index 19af329..fa5e9b9 100644 --- a/src/front/test/unit/filtersSpec.js +++ b/src/front/test/unit/filtersSpec.js @@ -3,7 +3,7 @@ /* jasmine specs for filters go here */ describe('filter', function() { - beforeEach(module('myApp.filters')); + beforeEach(module('KiteMail.filters')); describe('interpolate', function() { diff --git a/src/front/test/unit/servicesSpec.js b/src/front/test/unit/servicesSpec.js index 3864c8d..2425dc4 100644 --- a/src/front/test/unit/servicesSpec.js +++ b/src/front/test/unit/servicesSpec.js @@ -3,7 +3,7 @@ /* jasmine specs for services go here */ describe('service', function() { - beforeEach(module('myApp.services')); + beforeEach(module('KiteMail.services')); describe('version', function() { -- 2.43.0