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); }); }); });