Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed Jan 26, 2025
1 parent bd151f5 commit 75ac146
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/components/prompt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ test('Sends with right parameters', async () => {
await prompt.trigger('keydown.Enter')
expect(emitEventMock).toHaveBeenCalledWith('send-prompt', {
prompt: 'this is my prompt',
attachment: { content: 'image64', mimeType: 'image/png', url: 'file://image.png', saved: false, extracted: false },
attachment: { content: 'image64', mimeType: 'image/png', url: 'file://image.png', title: '', context: '', saved: false, extracted: false },
expert: { id: 'uuid1', type: 'system', name: 'actor1', prompt: 'prompt1', state: 'enabled' },
docrepo: 'docrepo',
})
Expand Down Expand Up @@ -137,6 +137,8 @@ test('Stores attachment', async () => {
saved: false,
extracted: false,
url: 'file://image.png',
title: '',
context: '',
})
})

Expand Down

0 comments on commit 75ac146

Please sign in to comment.