updated karma unit test
This commit is contained in:
parent
471da18a6c
commit
3bd12492b0
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue