From 5c3ed1f1d9bedd3d13ee2d8024bbff3a2d80aad6 Mon Sep 17 00:00:00 2001 From: khotcholava Date: Fri, 29 Nov 2024 16:37:44 +0400 Subject: [PATCH] feat(platform): table filter enhancement closes [#11783](https://github.com/SAP/fundamental-ngx/issues/11783) ## Description fix table component host spec test --- libs/platform/table-helpers/services/table.service.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/platform/table-helpers/services/table.service.spec.ts b/libs/platform/table-helpers/services/table.service.spec.ts index c74432faecd..e0d710ef683 100644 --- a/libs/platform/table-helpers/services/table.service.spec.ts +++ b/libs/platform/table-helpers/services/table.service.spec.ts @@ -72,7 +72,7 @@ describe('TableServiceService', () => { const setTableStateSpy = jest.spyOn(service, 'setTableState'); const filterChangeSpy = jest.spyOn(service.filterChange$, 'next'); const newFilterBy: CollectionStringFilter[] = [ - { field: 'name', value: 'Product name', strategy: FILTER_STRING_STRATEGY.CONTAINS } + { field: 'name', value: 'Product name', fieldName: 'name', strategy: FILTER_STRING_STRATEGY.CONTAINS } ]; const newState: TableState = { ...DEFAULT_TABLE_STATE, filterBy: newFilterBy }; const event: FilterChange = { current: newFilterBy, previous: DEFAULT_TABLE_STATE.filterBy };