MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / createFile

Function createFile

apps/web/src/hooks/useImageUpload.test.ts:8–10  ·  view source on GitHub ↗
(size: number, type = 'image/png')

Source from the content-addressed store, hash-verified

6
7function createFile(size: number, type = 'image/png') {
8 return new File([new Uint8Array(size)], 'image.png', { type });
9}
10
11describe('calculateResizeDimensions', () => {
12 it('resizes landscape images to the max longest side', () => {
13 expect(calculateResizeDimensions(3000, 1500, 1536)).toEqual({ width: 1536, height: 768 });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected