()
| 120 | } satisfies Omit<Note, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'ownerId'> |
| 121 | } |
| 122 | function 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 | } |
no test coverage detected