Skip to content

Commit

Permalink
feat: fix linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolivierbouch committed Jul 18, 2024
1 parent 9ede7c9 commit b762a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/use-assistant.ui.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('stream data stream', () => {
return (
<div>
<div data-testid="status">{status}</div>
{error && <div data-testid="error">{error.toString()}</div>}
{error ? <div data-testid="error">{error.toString()}</div> : <></>}
{messages.map((m, idx) => (
<div data-testid={`message-${idx}`} key={idx}>
{m.role === 'user' ? 'User: ' : 'AI: '}
Expand Down Expand Up @@ -155,7 +155,7 @@ describe('thread management', () => {
<div>
<div data-testid="status">{status}</div>
<div data-testid="thread-id">{threadId || 'undefined'}</div>
{error && <div data-testid="error">{error.toString()}</div>}
{error ? <div data-testid="error">{error.toString()}</div> : <></>}
{messages.map((m, idx) => (
<div data-testid={`message-${idx}`} key={idx}>
{m.role === 'user' ? 'User: ' : 'AI: '}
Expand Down

0 comments on commit b762a7b

Please sign in to comment.