From 21686b4a9222cc8d10a59adc6e484840119ddab6 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 27 Oct 2021 09:55:35 +0200 Subject: [PATCH] feat(test): modify jest test --- modules/client/front/balance/create/index.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/client/front/balance/create/index.spec.js b/modules/client/front/balance/create/index.spec.js index 3aade58c6..a2e3e2015 100644 --- a/modules/client/front/balance/create/index.spec.js +++ b/modules/client/front/balance/create/index.spec.js @@ -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'); }); });