Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: simplify inline array expectation in useThreadHarnessState test

Steven Enamakeld13bbfd8201b
diff --git a/app/src/features/conversations/hooks/useThreadHarnessState.test.ts b/app/src/features/conversations/hooks/useThreadHarnessState.test.ts
index df82f5858d..8cfa9d3ec8 100644
--- a/app/src/features/conversations/hooks/useThreadHarnessState.test.ts
+++ b/app/src/features/conversations/hooks/useThreadHarnessState.test.ts
@@ -88,10 +88,7 @@ describe('useThreadHarnessState', () => {
const { result } = renderHook(() => useThreadHarnessState('t1', NO_LIVE_ROWS));
await waitFor(() => expect(result.current.goal?.goalId).toBe('g1'));
expect(result.current.goal?.status).toBe('active');
- expect(result.current.todoList?.items.map(i => i.status)).toEqual([
- 'completed',
- 'in_progress',
- ]);
+ expect(result.current.todoList?.items.map(i => i.status)).toEqual(['completed', 'in_progress']);
});
it('lets the live turn win over the restored history', async () => {