// 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'});
}]);
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() {
/* jasmine specs for controllers go here */
describe('controllers', function(){
- beforeEach(module('myApp.controllers'));
+ beforeEach(module('KiteMail.controllers'));
it('should ....', inject(function() {
/* jasmine specs for filters go here */
describe('filter', function() {
- beforeEach(module('myApp.filters'));
+ beforeEach(module('KiteMail.filters'));
describe('interpolate', function() {
/* jasmine specs for services go here */
describe('service', function() {
- beforeEach(module('myApp.services'));
+ beforeEach(module('KiteMail.services'));
describe('version', function() {