Updated unit test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-09-21 13:51:38 +02:00
parent 32d492efd3
commit d41378a532
1 changed files with 2 additions and 1 deletions

View File

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