Skip to content

Commit

Permalink
fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed May 15, 2024
1 parent 871e0ec commit 10f7b1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ describe('ChatDisplay', () => {
props = {
chat: {
role: 'assistant',
content: 'mock text from the backend',
reply: 'mock text from the backend',
},
chatId: 'mockId',
}
})
it('should display response from the backend and label', () => {
Expand All @@ -33,8 +34,9 @@ describe('ChatDisplay', () => {
props = {
chat: {
role: 'user',
content: 'mock text from user input',
reply: 'mock text from user input',
},
chatId: 'mockId',
}
render(props)
screen.getByText('You')
Expand Down
2 changes: 1 addition & 1 deletion opentrons-ai-client/src/resources/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export interface ChatData {
/** assistant: ChatGPT API, user: user */
role: 'assistant' | 'user'
/** content ChatGPT API return or user prompt */
// content: string
reply: string
/** for testing purpose will be removed and this is not used in the app */
fake?: boolean
}

0 comments on commit 10f7b1e

Please sign in to comment.