This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('profileService', function () { | |
'use strict'; | |
var $q, $httpBackend, profileService; | |
var sessionServiceMock = jasmine.createSpyObj('sessionService', [ | |
'authenticate', | |
'getUserProfile' | |
]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('evbox.profile') | |
.factory('profileService', profileService); | |
profileService.$inject = ['$http', 'sessionService']; | |
function profileService($http, sessionService) { | |
return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('CardsController', function () { | |
'use strict'; | |
var $controller, controller, cardsMock; | |
var cardServiceMock = jasmine.createSpyObj('cardService', [ | |
'getColumns', | |
'updateColumnState', | |
'getOrderTitles', | |
'orderBy', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('evbox.cards') | |
.controller('CardsController', CardsController); | |
CardsController.$inject = ['cardService', 'permissionService', 'utils']; | |
function CardsController(cardService, permissionService, utils) { | |
var $ctrl = this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('login route', function () { | |
'use strict'; | |
var $httpBackend, $q, $state, $templateCache, $location; | |
var languageServiceMock = jasmine.createSpyObj('languageService', [ | |
'getTenantLanguages' | |
]); | |
var sessionServiceMock = jasmine.createSpyObj('sessionService', [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('evbox.landing') | |
.config(stateConfig); | |
stateConfig.$inject = ['$stateProvider']; | |
function stateConfig($stateProvider) { | |
$stateProvider.state('anon.landing', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('evbox.landing.login') | |
.config(stateConfig); | |
stateConfig.$inject = ['$stateProvider']; | |
function stateConfig($stateProvider) { | |
$stateProvider.state('anon.landing.login', { |