From d41378a5327de5c71becee9bc13cf1e938bcf4ad Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 21 Sep 2021 13:51:38 +0200 Subject: [PATCH] Updated unit test --- front/salix/components/bank-entity/index.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/salix/components/bank-entity/index.spec.js b/front/salix/components/bank-entity/index.spec.js index 3c3de4c40..f93325231 100644 --- a/front/salix/components/bank-entity/index.spec.js +++ b/front/salix/components/bank-entity/index.spec.js @@ -27,12 +27,13 @@ describe('Salix Component vnNewBankEntity', () => { countryFk: 1 }; - $httpBackend.expectPOST('bankEntities', controller.data).respond(200); + $httpBackend.expectPOST('bankEntities', controller.data).respond({id: 1}); controller.responseHandler('accept'); $httpBackend.flush(); expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!'); + expect(controller.data.id).toEqual(1); }); }); });