(
workspaceId: string,
historyService: Awaited<ReturnType<typeof createTestHistoryService>>["historyService"],
messageId = "user-message-with-image"
)
| 67 | } |
| 68 | |
| 69 | async function seedImageMessage( |
| 70 | workspaceId: string, |
| 71 | historyService: Awaited<ReturnType<typeof createTestHistoryService>>["historyService"], |
| 72 | messageId = "user-message-with-image" |
| 73 | ): Promise<string> { |
| 74 | const originalImageUrl = "data:image/png;base64,AAAA"; |
| 75 | await historyService.appendToHistory( |
| 76 | workspaceId, |
| 77 | createMuxMessage(messageId, "user", "original", { historySequence: 0 }, [ |
| 78 | { type: "file", mediaType: "image/png", url: originalImageUrl }, |
| 79 | ]) |
| 80 | ); |
| 81 | return originalImageUrl; |
| 82 | } |
| 83 | |
| 84 | afterEach(async () => { |
| 85 | await historyCleanup?.(); |
no test coverage detected