Skip to content

Commit 59bbe4d

Browse files
committed
maint(pat-sortable): Use bare JavaScript submit for tests.
1 parent bec5184 commit 59bbe4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pat/sortable/sortable.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe("pat-sortable", function () {
118118
$("#item3").prependTo($("ol")); // Simulate dragging it to the top.
119119
const submitCallback = jest.fn();
120120
submitCallback.mockReturnValue(false);
121-
$(form).submit(submitCallback);
121+
form.addEventListener("submit", submitCallback);
122122
document
123123
.querySelector("#item3 a.sortable-handle")
124124
.dispatchEvent(events.dragend_event());

0 commit comments

Comments
 (0)