Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed Jan 30, 2025
1 parent 6dc1330 commit ee62e4d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('<DataGridPremium /> - Data source aggregation', () => {
expect(footerRow?.id).to.deep.equal({ position: 'footer', value: 10 });
});

it('should derive the aggregation values using `dataSource.getAggregatedValue`', () => {
it('should derive the aggregation values using `dataSource.getAggregatedValue`', async () => {
const getAggregatedValue = () => 'Agg value';
render(
<TestDataSourceAggregation
Expand All @@ -167,7 +167,9 @@ describe('<DataGridPremium /> - Data source aggregation', () => {
getAggregatedValue={getAggregatedValue}
/>,
);
expect(Object.keys(apiRef.current!.state.aggregation.lookup).length).to.be.greaterThan(0);
await waitFor(() => {
expect(Object.keys(apiRef.current!.state.aggregation.lookup).length).to.be.greaterThan(0);
});
expect(apiRef.current?.state.aggregation.lookup[GRID_ROOT_GROUP_ID].id.value).to.equal(
'Agg value',
);
Expand Down

0 comments on commit ee62e4d

Please # to comment.