feat(test): modify jest test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2021-10-27 09:55:35 +02:00
parent 92b916580e
commit 21686b4a92
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ describe('Client', () => {
describe('bankSelection() setter', () => {
it('should set the receipt description property', () => {
controller.originalDescription = 'Albaran: 1, 2';
controller.bankSelection = {
id: 1,
bank: 'Cash',
@ -36,7 +37,7 @@ describe('Client', () => {
}
};
expect(controller.receipt.description).toContain('Cash');
expect(controller.receipt.description).toEqual('Cash, Albaran: 1, 2');
});
});