frontTest
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2020-12-16 16:25:19 +01:00
parent 2bb9125eee
commit 9abf23072a
1 changed files with 18 additions and 0 deletions

View File

@ -72,5 +72,23 @@ describe('Client', () => {
expect(controller.vnApp.showSuccess).toHaveBeenCalled();
});
});
describe('deliveredAmount() setter', () => {
it('should set the deliveredAmount property', () => {
controller.amountPaid = 999;
controller.deliveredAmount = 1000;
expect(controller.amountToReturn).toEqual(1);
});
});
describe('accountShortToStandard()', () => {
it('should get de account in stardard format', () => {
const shortAccount = '4.3';
controller.accountShortToStandard(shortAccount);
expect(controller.receipt.compensationAccount).toEqual('4000000003');
});
});
});
});