removed unused argument in test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
bc9ab1a837
commit
ec6a3e00f7
|
@ -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!');
|
||||||
|
|
Loading…
Reference in New Issue