Skip to content

Commit 5623a57

Browse files
committed
test: add a TODO on unit test
1 parent 1d42975 commit 5623a57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/__tests__/draggy.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ describe("draggy", () => {
8585
expect(onDrop).toHaveBeenCalledTimes(1);
8686
});
8787

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.
8890
test("that destroy removes the mouseup event", () => {
8991
jest.spyOn(document, "addEventListener").mockImplementation(jest.fn());
9092
jest.spyOn(document, "removeEventListener").mockImplementation(jest.fn());

0 commit comments

Comments
 (0)