Skip to content

Commit

Permalink
maint: Mock ClipboardEvent and DragEvent.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Sep 25, 2023
1 parent e063c4a commit c5bee7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tiptap.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import utils from "@patternslib/patternslib/src/core/utils";
import tiptap_utils from "./utils";
import PatternModal from "@patternslib/patternslib/src/pat/modal/modal";

// Mock some events which are needed by TipTap
window.ClipboardEvent = jest.fn();
window.DragEvent = jest.fn();

const mockFetch =
(text = "") =>
() =>
Expand Down

0 comments on commit c5bee7a

Please sign in to comment.