Skip to content

Commit

Permalink
Fixed tests (deephaven#2091)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Jun 20, 2024
1 parent db1becf commit 32aae73
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const mock = {
searchTextFilter: jest.fn() as FilterConditionFactory,
selectedKey: 'mock.selectedKey',
excludeSelectedValuesFilter: jest.fn() as FilterConditionFactory,
timeZone: 'mock.timeZone',
value: 'mock.value',
viewportData: createMockProxy<WindowedListData<KeyedItem<MockItem>>>(),
};
Expand Down Expand Up @@ -171,7 +172,8 @@ it.each([undefined, false, true])(
expect(createSearchTextFilter).toHaveBeenCalledWith(
tableUtils,
mock.columnName,
''
'',
mock.timeZone
);

expect(createSelectedValuesFilter).toHaveBeenCalledWith(
Expand Down Expand Up @@ -247,7 +249,8 @@ it.each([undefined, false, true])(
expect(createSearchTextFilter).toHaveBeenCalledWith(
tableUtils,
mock.columnName,
trimSearchText === true ? mock.searchTextTrimmed : mock.searchText
trimSearchText === true ? mock.searchTextTrimmed : mock.searchText,
mock.timeZone
);

expect(createSelectedValuesFilter).not.toHaveBeenCalled();
Expand Down

0 comments on commit 32aae73

Please sign in to comment.