MCPcopy Create free account
hub / github.com/dailydotdev/apps / pasteFiles

Function pasteFiles

packages/shared/src/components/modals/FeedbackModal.spec.tsx:55–65  ·  view source on GitHub ↗
(files: File[])

Source from the content-addressed store, hash-verified

53};
54
55const pasteFiles = (files: File[]): Event => {
56 const event = new Event('paste', { bubbles: true, cancelable: true });
57 Object.defineProperty(event, 'clipboardData', {
58 value: { files, items: [] },
59 });
60 act(() => {
61 document.dispatchEvent(event);
62 });
63
64 return event;
65};
66
67describe('FeedbackModal', () => {
68 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected