fix: correct Team constructor usage in abort-signal tests

This commit is contained in:
JackChen 2026-04-06 12:54:24 +08:00
parent 336d94e50d
commit 1e3bd1013e
1 changed files with 4 additions and 4 deletions

View File

@ -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' },