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