Summary Table
| Categories |
Total Count |
| PII |
0 |
| URL |
0 |
| DNS |
0 |
| EKL |
0 |
| IP |
0 |
| PORT |
0 |
| VsID |
0 |
| CF |
0 |
| AI |
0 |
| VPD |
0 |
| PL |
0 |
| Other |
0 |
File Content
define(['SplashController', 'appConfig'], function () {
'use strict';
describe("The Splash Controller", function () {
var controller,
scope,
pageServiceMock,
focusServiceMock,
authServiceMock;
beforeEach(function () {
module('angularTemplateApp');
focusServiceMock = jasmine.createSpyObj('focusService', ['focusMain']);
authServiceMock = jasmine.createSpyObj('authenticationService', ['authenticate']);
module(function ($provide) {
$provide.value('focusService', focusServiceMock);
$provide.value('authenticationService', authServiceMock);
});
inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
controller = $controller('SplashController', {$scope: scope});
});
});
describe("when the login button is clicked", function () {
beforeEach(function () {
scope.beginLogon();
});
it("the auth service should be called", function () {
expect(authServiceMock.authenticate).toHaveBeenCalled();
});
});
});
});