MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / makeMockFile

Function makeMockFile

src/parsers/maskZipExport.test.ts:14–16  ·  view source on GitHub ↗
(data: Uint8Array, name: string, type = 'image/png')

Source from the content-addressed store, hash-verified

12const pngBytes = new Uint8Array([137, 80, 78, 71, 13, 10, 26, 10]);
13
14function makeMockFile(data: Uint8Array, name: string, type = 'image/png'): File {
15 return buildReadableBinaryFile({ contents: data, name, type });
16}
17
18afterEach(() => {
19 vi.restoreAllMocks();

Callers 1

Calls 1

buildReadableBinaryFileFunction · 0.90

Tested by

no test coverage detected