MCPcopy
hub / github.com/epicweb-dev/epic-stack / createNoteWithImage

Function createNoteWithImage

tests/e2e/note-images.test.ts:122–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 } satisfies Omit<Note, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'ownerId'>
121}
122function createNoteWithImage() {
123 return {
124 ...createNote(),
125 images: {
126 create: {
127 altText: 'cute koala',
128 contentType: 'image/png',
129 blob: fs.readFileSync(
130 'tests/fixtures/images/kody-notes/cute-koala.png',
131 ),
132 },
133 },
134 } satisfies Omit<
135 Note,
136 'id' | 'createdAt' | 'updatedAt' | 'type' | 'ownerId'
137 > & {
138 images: { create: Pick<NoteImage, 'altText' | 'blob' | 'contentType'> }
139 }
140}

Callers 1

Calls 1

createNoteFunction · 0.70

Tested by

no test coverage detected