We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d42975 commit 5623a57Copy full SHA for 5623a57
lib/__tests__/draggy.test.ts
@@ -85,6 +85,8 @@ describe("draggy", () => {
85
expect(onDrop).toHaveBeenCalledTimes(1);
86
});
87
88
+ // @TODO: This is a bit weak.
89
+ // The test should be a bit more in-depth with removing context.events + event on each draggable.
90
test("that destroy removes the mouseup event", () => {
91
jest.spyOn(document, "addEventListener").mockImplementation(jest.fn());
92
jest.spyOn(document, "removeEventListener").mockImplementation(jest.fn());
0 commit comments