fix: frontTest
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-04-12 12:32:48 +02:00
parent 5921891161
commit 1e11191e79
1 changed files with 2 additions and 6 deletions

View File

@ -156,12 +156,8 @@ describe('claim', () => {
it('should perform a post query and show a success message', () => { it('should perform a post query and show a success message', () => {
jest.spyOn(controller.vnApp, 'showSuccess'); jest.spyOn(controller.vnApp, 'showSuccess');
const data = { $httpBackend.expect('POST', `Claims/updateClaimDestination`).respond({});
rows: {id: 1}, controller.onResponse();
claimDestinationFk: 1
};
$httpBackend.expect('POST', `Claims/updateClaimDestination`, data).respond({});
controller.save(data);
$httpBackend.flush(); $httpBackend.flush();
expect(controller.vnApp.showSuccess).toHaveBeenCalled(); expect(controller.vnApp.showSuccess).toHaveBeenCalled();