MCPcopy Create free account
hub / github.com/primer/react / imageFile

Function imageFile

packages/react/src/drafts/MarkdownEditor/MarkdownEditor.test.tsx:624–624  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

622
623 describe('file attachment', () => {
624 const imageFile = (name: string) => new File(['foo'], `${name}.png`, {type: 'image/png'})
625
626 const mockUrl = (file: File) => `https://example.com/${encodeURIComponent(file.name)}`
627

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected