skipped tests fixed
This commit is contained in:
parent
629df353ec
commit
5c6ab8efc3
|
@ -35,7 +35,7 @@ describe('Ticket', () => {
|
||||||
discount: 0,
|
discount: 0,
|
||||||
checked: false
|
checked: false
|
||||||
}
|
}
|
||||||
]};
|
], refresh: () => {}};
|
||||||
$scope.addTurn = {show: () => {}};
|
$scope.addTurn = {show: () => {}};
|
||||||
controller = $componentController('vnTicketSale', {$scope: $scope}, {$state: $state});
|
controller = $componentController('vnTicketSale', {$scope: $scope}, {$state: $state});
|
||||||
controller.ticket = {id: 1, clientFk: 1, shipped: 1, client: {salesPersonFk: 1}};
|
controller.ticket = {id: 1, clientFk: 1, shipped: 1, client: {salesPersonFk: 1}};
|
||||||
|
@ -182,7 +182,7 @@ describe('Ticket', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
xdescribe('onRemoveLinesClick()', () => {
|
describe('onRemoveLinesClick()', () => {
|
||||||
it('should call getCheckedLines, call removeInstances, and make a query', () => {
|
it('should call getCheckedLines, call removeInstances, and make a query', () => {
|
||||||
spyOn(controller, 'getCheckedLines');
|
spyOn(controller, 'getCheckedLines');
|
||||||
spyOn(controller, 'removeInstances');
|
spyOn(controller, 'removeInstances');
|
||||||
|
@ -192,7 +192,7 @@ describe('Ticket', () => {
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
||||||
expect(controller.getCheckedLines).toHaveBeenCalledWith();
|
expect(controller.getCheckedLines).toHaveBeenCalledWith();
|
||||||
expect(controller.removeInstances).toHaveBeenCalledWith();
|
expect(controller.removeInstances).toHaveBeenCalledWith(undefined);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ describe('Ticket', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
xdescribe('setReserved()', () => {
|
describe('setReserved()', () => {
|
||||||
it('should call getCheckedLines, $.index.accept and make a query ', () => {
|
it('should call getCheckedLines, $.index.accept and make a query ', () => {
|
||||||
spyOn(controller, 'getCheckedLines');
|
spyOn(controller, 'getCheckedLines');
|
||||||
$httpBackend.expectPOST(`/ticket/api/Sales/reserve`).respond();
|
$httpBackend.expectPOST(`/ticket/api/Sales/reserve`).respond();
|
||||||
|
|
Loading…
Reference in New Issue