Skip to content

Commit

Permalink
fix(test): fix window.SubmitEvent polyfill by using a class instead…
Browse files Browse the repository at this point in the history
… of a function (it requires a prototype)
  • Loading branch information
Kocal committed May 28, 2024
1 parent 979f033 commit 0029c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Turbo/assets/test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
*/

// polyfill for some odd error inside of Turbo in the test environment
window.SubmitEvent = () => {};
window.SubmitEvent = class {};

0 comments on commit 0029c27

Please sign in to comment.