removed unused argument in test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-06-23 13:26:21 +02:00
parent bc9ab1a837
commit ec6a3e00f7
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,8 @@ describe('claim', () => {
controller.sale = {id: 1}; controller.sale = {id: 1};
jest.spyOn(controller.$.model, 'remove'); jest.spyOn(controller.$.model, 'remove');
jest.spyOn(controller.vnApp, 'showSuccess'); jest.spyOn(controller.vnApp, 'showSuccess');
$httpBackend.expectDELETE(`ClaimBeginnings/1`).respond({}); $httpBackend.expectDELETE(`ClaimBeginnings/1`).respond('ok');
controller.deleteClaimedSale('accept'); controller.deleteClaimedSale();
$httpBackend.flush(); $httpBackend.flush();
expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!'); expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!');