updated karma unit test
gitea/salix/dev This commit looks good Details
gitea/salix/test This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-06-17 08:16:25 +02:00
parent 471da18a6c
commit 3bd12492b0
1 changed files with 0 additions and 12 deletions

View File

@ -71,18 +71,6 @@ describe('Client', () => {
expect(vnApp.showError).toHaveBeenCalledWith(`Swift / BIC can't be empty`); expect(vnApp.showError).toHaveBeenCalledWith(`Swift / BIC can't be empty`);
}); });
it(`should throw an error if id property is empty`, () => {
controller.newBankEntity = {
name: 'My new bank entity',
bic: 'ES123',
countryFk: 1,
id: null
};
controller.onBankEntityResponse('ACCEPT');
expect(vnApp.showError).toHaveBeenCalledWith(`Code can't be empty`);
});
it('should request to create a new bank entity', () => { it('should request to create a new bank entity', () => {
let newBankEntity = { let newBankEntity = {
name: 'My new bank entity', name: 'My new bank entity',