Skip to content

Commit

Permalink
Fix sorting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amanmahajan7 committed Oct 17, 2023
1 parent d713b26 commit 7a9a8bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sorting.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ function setup() {
}

function testSortColumns(expectedValue: readonly SortColumn[]) {
expect(JSON.parse(screen.getByTestId('sortColumnsValue').textContent!)).toStrictEqual(
expectedValue
);
expect(
JSON.parse(screen.getByTestId('sortColumnsValue', { suggest: false }).textContent!)
).toStrictEqual(expectedValue);
}

test('should not sort if sortable is false', async () => {
Expand Down

0 comments on commit 7a9a8bc

Please sign in to comment.