From 6adc5d8aa00d2c09015875c55e9263dd09d2e758 Mon Sep 17 00:00:00 2001 From: suyashpatil78 Date: Wed, 11 Oct 2023 15:13:15 +0530 Subject: [PATCH] minor --- .../services/merge-expenses.service.spec.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/app/core/services/merge-expenses.service.spec.ts b/src/app/core/services/merge-expenses.service.spec.ts index 38be4e2a50..cef21423b8 100644 --- a/src/app/core/services/merge-expenses.service.spec.ts +++ b/src/app/core/services/merge-expenses.service.spec.ts @@ -911,17 +911,16 @@ describe('MergeExpensesService', () => { it('formatTaxGroupOption(): should return the formatted tax group option with label as undefined if id does not matches with options', (done) => { taxGroupService.get.and.returnValue(of(taxGroupData)); + const mockOptions = { ...optionsData11.options[0], value: 'tgp6JA6tgoZ1' }; // @ts-ignore - mergeExpensesService - .formatTaxGroupOption({ ...optionsData11.options[0], value: 'tgp6JA6tgoZ1' }) - .subscribe((res) => { - expect(res).toEqual({ - label: undefined, - value: 'tgp6JA6tgoZ1', - }); - expect(taxGroupService.get).toHaveBeenCalledTimes(1); - done(); + mergeExpensesService.formatTaxGroupOption(mockOptions).subscribe((res) => { + expect(res).toEqual({ + label: undefined, + value: 'tgp6JA6tgoZ1', }); + expect(taxGroupService.get).toHaveBeenCalledTimes(1); + done(); + }); }); });