From 284af60f3428d1418428066b6ceba31124d5e0b4 Mon Sep 17 00:00:00 2001 From: Yossi Saadi Date: Sun, 27 Oct 2024 17:14:49 +0200 Subject: [PATCH] test(Table): fix context mocked value --- .../components/Table/Table/__tests__/tableTestUtils.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/components/Table/Table/__tests__/tableTestUtils.tsx b/packages/core/src/components/Table/Table/__tests__/tableTestUtils.tsx index 2696e3ecb3..740cbda34f 100644 --- a/packages/core/src/components/Table/Table/__tests__/tableTestUtils.tsx +++ b/packages/core/src/components/Table/Table/__tests__/tableTestUtils.tsx @@ -19,14 +19,14 @@ export function mockUseTable() { errorState:
, size: RowSizes.MEDIUM, tableRootRef: { current: null }, + isVirtualized: false, + markTableAsVirtualized: jest.fn(), scrollLeft: 0, - onTableRootScroll: jest.fn(), + setScrollLeft: jest.fn(), headRef: { current: null }, onHeadScroll: jest.fn(), virtualizedListRef: { current: null }, - onVirtualizedListScroll: jest.fn(), - isVirtualized: false, - markTableAsVirtualized: jest.fn() + onVirtualizedListScroll: jest.fn() } satisfies ITableContext) ); }