Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Jun 3, 2024
1 parent a7f4bea commit 0fc580c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/x-data-grid/src/tests/DataGrid.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,17 @@ describe('<DataGrid />', () => {
expect(
render(
<DataGrid
rows={rows}
columns={columns}
{...Object.keys(DATA_GRID_PROPS_DEFAULT_VALUES).reduce((acc, key) => {
{...(
Object.keys(DATA_GRID_PROPS_DEFAULT_VALUES) as Array<
keyof typeof DATA_GRID_PROPS_DEFAULT_VALUES
>
).reduce((acc, key) => {
// @ts-ignore
acc[key] = undefined;
return acc;
}, {})}
rows={rows}
columns={columns}
/>,
),
).not.toErrorDev();
Expand Down

0 comments on commit 0fc580c

Please sign in to comment.