From f50f6de0e2a02d09c48b72179b8dc4e3d9e29da2 Mon Sep 17 00:00:00 2001 From: Armin Mehinovic Date: Fri, 4 Oct 2024 11:09:34 +0200 Subject: [PATCH] Fix test --- .../src/tests/dataSourceLazyLoader.DataGridPro.test.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/x-data-grid-pro/src/tests/dataSourceLazyLoader.DataGridPro.test.tsx b/packages/x-data-grid-pro/src/tests/dataSourceLazyLoader.DataGridPro.test.tsx index e573abf73a2b2..d78862677cfbc 100644 --- a/packages/x-data-grid-pro/src/tests/dataSourceLazyLoader.DataGridPro.test.tsx +++ b/packages/x-data-grid-pro/src/tests/dataSourceLazyLoader.DataGridPro.test.tsx @@ -16,7 +16,7 @@ import { SinonSpy, spy } from 'sinon'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); -describe.only(' - Data source lazy loader', () => { +describe(' - Data source lazy loader', () => { const { render } = createRenderer(); const defaultTransformGetRowsResponse = (response: GridGetRowsResponse) => response; @@ -32,6 +32,7 @@ describe.only(' - Data source lazy loader', () => { { useCursorPagination: false, minDelay: 0, maxDelay: 0, verbose: false }, ); fetchRowsSpy = spy(mockServer, 'fetchRows'); + const { fetchRows } = mockServer; const dataSource: GridDataSource = React.useMemo( () => ({ @@ -43,7 +44,7 @@ describe.only(' - Data source lazy loader', () => { lastRowToRender: `${params.end}`, }); - const getRowsResponse = await fetchRowsSpy( + const getRowsResponse = await fetchRows( `https://mui.com/x/api/data-grid?${urlParams.toString()}`, ); @@ -54,7 +55,7 @@ describe.only(' - Data source lazy loader', () => { }; }, }), - [fetchRowsSpy], + [fetchRows], ); const baselineProps = {