Skip to content

Commit ccaa437

Browse files
committed
Fix tests
1 parent d4afa2b commit ccaa437

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/browser/column/resizable.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ test('should auto resize column when resize handle is double clicked', async ()
110110
await expect.element(grid).toHaveStyle({ gridTemplateColumns: '100px 200px' });
111111
await autoResize(col2);
112112
await expect.element(grid).toHaveStyle({ gridTemplateColumns: '100px 327.703px' });
113-
expect(onColumnResize).toHaveBeenCalledExactlyOnceWith(expect.objectContaining(col2), 327.703);
113+
// This is called twice in strict mode
114+
expect(onColumnResize).toHaveBeenCalledWith(expect.objectContaining(columns[1]), 327.703125);
114115
});
115116

116117
test('should use the maxWidth if specified on auto resize', async () => {

0 commit comments

Comments
 (0)