Skip to content

Commit

Permalink
[test] Fix testEval not invoking test assertions (#10587)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii authored Oct 6, 2023
1 parent e3116f2 commit 0c8e06c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/grid/x-data-grid/src/tests/filtering.DataGrid.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ describe('<DataGrid /> - Filter', () => {
let disableEval = false;

function testEval(fn: Function) {
return () => {
disableEval = false;
fn();
disableEval = true;
fn();
disableEval = false;
};
disableEval = false;
fn();
disableEval = true;
fn();
disableEval = false;
}

function TestCase(props: Partial<DataGridProps>) {
Expand Down

0 comments on commit 0c8e06c

Please sign in to comment.