Skip to content

Commit

Permalink
typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharyar-shamshi committed Feb 27, 2024
1 parent ce71551 commit d56332d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe('<DataGridPro /> - Columns', () => {
expect(onColumnWidthChange.args[0][0].width).to.equal(120);
});

it('should call onColumnWidthChange with correct width after resizing and then clicking the seprator', async () => {
it('should call onColumnWidthChange with correct width after resizing and then clicking the separator', async () => {
const onColumnWidthChange = spy();
render(<Test onColumnWidthChange={onColumnWidthChange} columns={columns} />);
const separator = document.querySelector(`.${gridClasses['columnSeparator--resizable']}`)!;
Expand All @@ -166,6 +166,7 @@ describe('<DataGridPro /> - Columns', () => {
await microtasks();
expect(onColumnWidthChange.callCount).to.equal(2);
expect(onColumnWidthChange.args[1][0].width).to.equal(116);
expect(onColumnWidthChange.args[1][0].colDef.width).to.equal(116);
});

it('should not affect other cell elements that are not part of the main DataGrid instance', () => {
Expand Down

0 comments on commit d56332d

Please sign in to comment.