skipped tests fixed

This commit is contained in:
gerard 2018-09-18 09:52:50 +02:00
parent 629df353ec
commit 5c6ab8efc3
1 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ describe('Ticket', () => {
discount: 0,
checked: false
}
]};
], refresh: () => {}};
$scope.addTurn = {show: () => {}};
controller = $componentController('vnTicketSale', {$scope: $scope}, {$state: $state});
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', () => {
spyOn(controller, 'getCheckedLines');
spyOn(controller, 'removeInstances');
@ -192,7 +192,7 @@ describe('Ticket', () => {
$httpBackend.flush();
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 ', () => {
spyOn(controller, 'getCheckedLines');
$httpBackend.expectPOST(`/ticket/api/Sales/reserve`).respond();