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(['progressService'], function () {
'use strict';
describe('Progress Service', function () {
var service;
beforeEach(function () {
module('angularTemplateApp');
inject(function (progressService) {
service = progressService;
});
});
it('should calculate 0% progress by default', function () {
expect(service.getProgress()).toEqual(0);
});
it('should calculate progress based on the given object', function () {
service.setProgressServiceInstance({
getNumCompleted: function () {
return 5;
},
getTotalSteps: function () {
return 10;
}
});
expect(service.getProgress()).toEqual(50);
});
});
});