Skip to content

Commit

Permalink
test: remove redundant onBeforeDrop test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Jul 24, 2024
1 parent 73346fb commit f08ff76
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/__tests__/draggy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,6 @@ describe("draggy", () => {
expect(onCreateShadow).toHaveBeenCalledTimes(1);
});

test("that onBeforeDrop is fired if defined", () => {
const onBeforeDrop = jest.fn();

draggy({ target: ".column", onBeforeDrop });

const draggable = screen.getByText("Card 4");

fireEvent.mouseDown(draggable);
fireEvent.mouseUp(draggable);

expect(onBeforeDrop).toHaveBeenCalledTimes(1);
});

test("that multi-selection starts", async () => {
const onStart = jest.fn();

Expand Down

0 comments on commit f08ff76

Please sign in to comment.