diff --git a/modules/claim/front/detail/index.spec.js b/modules/claim/front/detail/index.spec.js index 520f40f39..5061eaff7 100644 --- a/modules/claim/front/detail/index.spec.js +++ b/modules/claim/front/detail/index.spec.js @@ -76,8 +76,8 @@ describe('claim', () => { controller.sale = {id: 1}; jest.spyOn(controller.$.model, 'remove'); jest.spyOn(controller.vnApp, 'showSuccess'); - $httpBackend.expectDELETE(`ClaimBeginnings/1`).respond({}); - controller.deleteClaimedSale('accept'); + $httpBackend.expectDELETE(`ClaimBeginnings/1`).respond('ok'); + controller.deleteClaimedSale(); $httpBackend.flush(); expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!');