Skip to content

Commit bec5184

Browse files
committed
maint(pat-inject): Use bare JavaScript submit for tests.
1 parent 98e4235 commit bec5184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pat/inject/inject.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1874,7 +1874,7 @@ describe("pat-inject", function () {
18741874
registry.scan(document.body);
18751875
await utils.timeout(1);
18761876

1877-
$(".pat-inject").submit(); // need jquery submit here
1877+
document.querySelector(".pat-inject").dispatchEvent(events.submit_event());
18781878
const ajaxargs = spy_ajax.mock.calls[spy_ajax.mock.calls.length - 1][0];
18791879
expect(ajaxargs.cache).toBe(false);
18801880
spy_ajax.mockRestore();

0 commit comments

Comments
 (0)