From 1e3bd1013ebdf8785976a1e5548c9acca5fe9c33 Mon Sep 17 00:00:00 2001 From: JackChen Date: Mon, 6 Apr 2026 12:54:24 +0800 Subject: [PATCH] fix: correct Team constructor usage in abort-signal tests --- tests/abort-signal.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/abort-signal.test.ts b/tests/abort-signal.test.ts index 4a86f14..cb55fc6 100644 --- a/tests/abort-signal.test.ts +++ b/tests/abort-signal.test.ts @@ -11,7 +11,7 @@ describe('AbortSignal support for runTeam and runTasks', () => { // Verify the API accepts the option without throwing const controller = new AbortController() - const team = new Team('test', { + const team = new Team({ name: 'test', agents: [ { name: 'agent1', model: 'test-model', systemPrompt: 'test' }, @@ -39,7 +39,7 @@ describe('AbortSignal support for runTeam and runTasks', () => { }) const controller = new AbortController() - const team = new Team('test', { + const team = new Team({ name: 'test', agents: [ { name: 'agent1', model: 'test-model', systemPrompt: 'test' }, @@ -65,7 +65,7 @@ describe('AbortSignal support for runTeam and runTasks', () => { const controller = new AbortController() controller.abort() - const team = new Team('test', { + const team = new Team({ name: 'test', agents: [ { name: 'agent1', model: 'test-model', systemPrompt: 'test' }, @@ -87,7 +87,7 @@ describe('AbortSignal support for runTeam and runTasks', () => { defaultProvider: 'openai', }) - const team = new Team('test', { + const team = new Team({ name: 'test', agents: [ { name: 'agent1', model: 'test-model', systemPrompt: 'test' },