Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Oct 4, 2024
1 parent 4e7e17b commit 14cd89d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { SinonSpy, spy } from 'sinon';

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

describe.only('<DataGridPro /> - Data source lazy loader', () => {
describe('<DataGridPro /> - Data source lazy loader', () => {
const { render } = createRenderer();
const defaultTransformGetRowsResponse = (response: GridGetRowsResponse) => response;

Expand All @@ -32,6 +32,7 @@ describe.only('<DataGridPro /> - Data source lazy loader', () => {
{ useCursorPagination: false, minDelay: 0, maxDelay: 0, verbose: false },
);
fetchRowsSpy = spy(mockServer, 'fetchRows');
const { fetchRows } = mockServer;

const dataSource: GridDataSource = React.useMemo(
() => ({
Expand All @@ -43,7 +44,7 @@ describe.only('<DataGridPro /> - Data source lazy loader', () => {
lastRowToRender: `${params.end}`,
});

const getRowsResponse = await fetchRowsSpy(
const getRowsResponse = await fetchRows(
`https://mui.com/x/api/data-grid?${urlParams.toString()}`,
);

Expand All @@ -54,7 +55,7 @@ describe.only('<DataGridPro /> - Data source lazy loader', () => {
};
},
}),
[fetchRowsSpy],
[fetchRows],
);

const baselineProps = {
Expand Down

0 comments on commit 14cd89d

Please sign in to comment.