Skip to content

Commit

Permalink
fix: inters
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Dec 15, 2024
1 parent 564badb commit f6b6a51
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/internal/components/Draggable.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('Draggable', () => {

it('snaps to grid when dragging ends if enableSnapToGrid is true', async () => {
const user = userEvent.setup();
const { rerender } = render(
render(
<Draggable gridSize={10} startingPosition={{ x: 0, y: 0 }}>
<div>Drag me</div>
</Draggable>,
Expand Down Expand Up @@ -146,9 +146,7 @@ describe('Draggable', () => {
]);
expect(draggable).toHaveStyle({ left: '50px', top: '50px' });

await user.pointer([
{ coords: { x: 100, y: 75 } },
])
await user.pointer([{ coords: { x: 100, y: 75 } }]);

expect(draggable).toHaveStyle({ left: '100px', top: '75px' });
});
Expand Down

0 comments on commit f6b6a51

Please sign in to comment.