#7864 - 7864_testToMaster_2434 #2867
|
@ -53,14 +53,12 @@ describe('Item Component vnClaimDescriptor', () => {
|
|||
describe('deleteClaim()', () => {
|
||||
it('should perform a query and call showSuccess if the response is accept', () => {
|
||||
jest.spyOn(controller.vnApp, 'showSuccess');
|
||||
jest.spyOn(controller.$state, 'go');
|
||||
|
||||
$httpBackend.expectDELETE(`Claims/${claim.id}`).respond();
|
||||
controller.deleteClaim();
|
||||
$httpBackend.flush();
|
||||
|
||||
expect(controller.vnApp.showSuccess).toHaveBeenCalled();
|
||||
expect(controller.$state.go).toHaveBeenCalledWith('claim.index');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue