This commit is contained in:
parent
473b218da1
commit
5f4b62f133
|
@ -74,7 +74,7 @@ describe('Worker', () => {
|
||||||
let yesterday = new Date(today.getTime());
|
let yesterday = new Date(today.getTime());
|
||||||
yesterday.setDate(yesterday.getDate() - 1);
|
yesterday.setDate(yesterday.getDate() - 1);
|
||||||
|
|
||||||
controller.worker = {id: 1107};
|
controller.worker = {id: 1107, hasWorkCenter: true};
|
||||||
|
|
||||||
expect(controller.getIsSubordinate).toHaveBeenCalledWith();
|
expect(controller.getIsSubordinate).toHaveBeenCalledWith();
|
||||||
expect(controller.getActiveContract).toHaveBeenCalledWith();
|
expect(controller.getActiveContract).toHaveBeenCalledWith();
|
||||||
|
|
|
@ -16,6 +16,12 @@ describe('Component vnWorkerTimeControl', () => {
|
||||||
$scope = $rootScope.$new();
|
$scope = $rootScope.$new();
|
||||||
$element = angular.element('<vn-worker-time-control></vn-worker-time-control>');
|
$element = angular.element('<vn-worker-time-control></vn-worker-time-control>');
|
||||||
controller = $componentController('vnWorkerTimeControl', {$element, $scope});
|
controller = $componentController('vnWorkerTimeControl', {$element, $scope});
|
||||||
|
controller.card = {
|
||||||
|
worker: {
|
||||||
|
hasWorkerCenter: true
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('date() setter', () => {
|
describe('date() setter', () => {
|
||||||
|
|
Loading…
Reference in New Issue