Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashpatil78 committed Oct 11, 2023
1 parent d54a87a commit 6adc5d8
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/app/core/services/merge-expenses.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
});

Expand Down

0 comments on commit 6adc5d8

Please sign in to comment.