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

Function createFile

apps/web/src/hooks/useCloudAgentAttachmentUpload.test.ts:16–18  ·  view source on GitHub ↗
(name: string, type: string, size = 32)

Source from the content-addressed store, hash-verified

14} from '@/lib/cloud-agent/constants';
15
16function createFile(name: string, type: string, size = 32) {
17 return new File([new Uint8Array(size)], name, { type });
18}
19
20describe('cloud agent attachment classification', () => {
21 it('normalizes Markdown filenames only for browser text-compatible MIME values', () => {

Calls

no outgoing calls

Tested by

no test coverage detected