From 1e11191e7930b0b35ca2a316988dfecccdffcd16 Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 12 Apr 2022 12:32:48 +0200 Subject: [PATCH] fix: frontTest --- modules/claim/front/action/index.spec.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/claim/front/action/index.spec.js b/modules/claim/front/action/index.spec.js index ab104f93a..458d5e831 100644 --- a/modules/claim/front/action/index.spec.js +++ b/modules/claim/front/action/index.spec.js @@ -156,12 +156,8 @@ describe('claim', () => { it('should perform a post query and show a success message', () => { jest.spyOn(controller.vnApp, 'showSuccess'); - const data = { - rows: {id: 1}, - claimDestinationFk: 1 - }; - $httpBackend.expect('POST', `Claims/updateClaimDestination`, data).respond({}); - controller.save(data); + $httpBackend.expect('POST', `Claims/updateClaimDestination`).respond({}); + controller.onResponse(); $httpBackend.flush(); expect(controller.vnApp.showSuccess).toHaveBeenCalled();