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(['VideoRetryController'], function () {
'use strict';

describe("Video Retry Controller", function () {
var controller,
scope,
focusServiceMock;

beforeEach(function () {
module('angularTemplateApp');

focusServiceMock = jasmine.createSpyObj('focusService', ['focusElement']);

module(function ($provide) {
$provide.value('videoSubmitEvaluationService', 'videoSubmitEvaluationService');
$provide.value('$stateParams', {});
$provide.value('focusService', focusServiceMock);
$provide.value('globalDelayTracker', {});
});

inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
controller = $controller;
});
});

describe("initial status", function () {
it("should set the submitEvaluationService", function () {
controller = controller('VideoRetryController', {$scope: scope});

expect(scope.submitEvaluationService).toEqual('videoSubmitEvaluationService');
});
});

it("should extend the RetryController", function () {
controller = controller('VideoRetryController', {$scope: scope});

expect(scope.statusTemplate).toEqual('modules/applets/shared/pages/submit-status/retry/retry_template.html');
});
});
});