Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 9f073ea

Browse files
author
vikasrohit
committed
SUP-1159, Progress bar to show %complete on upload
-- Fixing unit tests error.
1 parent 75ba53b commit 9f073ea

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/submissions/submit-file/submit-file.spec.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
describe('Submit File Controller', function() {
33
var controller;
44
var vm;
5+
var scope;
56

67
var mockChallenge = {
78
challenge: {
@@ -21,13 +22,16 @@ describe('Submit File Controller', function() {
2122

2223
beforeEach(function() {
2324
bard.appModule('tc.submissions');
24-
bard.inject(this, '$controller');
25+
bard.inject(this, '$controller', '$rootScope');
26+
27+
scope = $rootScope.$new();
2528
});
2629

2730
bard.verifyNoOutstandingHttpRequests();
2831

2932
beforeEach(function() {
3033
controller = $controller('SubmitFileController', {
34+
$scope: scope,
3135
UserService: userService,
3236
challengeToSubmitTo: mockChallenge
3337
});
@@ -37,4 +41,10 @@ describe('Submit File Controller', function() {
3741
it('should exist', function() {
3842
expect(vm).to.exist;
3943
});
44+
45+
describe('updateProgress ', function() {
46+
it('should update PREPARE phase end ', function() {
47+
48+
});
49+
});
4050
});

0 commit comments

Comments
 (0)