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

Function okImageResponse

src/utils/urlImageFiles.test.ts:31–35  ·  view source on GitHub ↗
(contents: string, type = 'image/png')

Source from the content-addressed store, hash-verified

29}
30
31function okImageResponse(contents: string, type = 'image/png'): Response {
32 return buildResponse({
33 blob: vi.fn().mockResolvedValue(new Blob([contents], { type })),
34 });
35}
36
37beforeEach(() => {
38 clearUrlImageCache();

Callers 1

Calls 1

buildResponseFunction · 0.90

Tested by

no test coverage detected