MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / createMockFile

Function createMockFile

test/unit/components/editor/editor.test.js:156–159  ·  view source on GitHub ↗
(name, size, type = 'text/plain')

Source from the content-addressed store, hash-verified

154
155 describe('File attachment handling', () => {
156 const createMockFile = (name, size, type = 'text/plain') => {
157 const content = 'x'.repeat(size);
158 return new File([content], name, {type});
159 };
160
161 it('should add files to state when attachments are added', async () => {
162 const {ref} = setup();

Callers 1

editor.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected