Skip to content

Commit e9ae589

Browse files
autofix-ci[bot]DiegoGBrisa
authored andcommitted
ci: apply automated fixes
1 parent 14be4ae commit e9ae589

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

packages/typescript/ai/tests/chat.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -704,24 +704,20 @@ describe('chat()', () => {
704704
// to store the tool call with empty arguments {}.
705705
const toolStartChunks = chunks.filter(
706706
(c) =>
707-
c.type === 'TOOL_CALL_START' &&
708-
(c as any).toolCallId === 'call_1',
707+
c.type === 'TOOL_CALL_START' && (c as any).toolCallId === 'call_1',
709708
)
710709
expect(toolStartChunks).toHaveLength(1)
711710
expect((toolStartChunks[0] as any).toolName).toBe('getWeather')
712711

713712
const toolArgsChunks = chunks.filter(
714713
(c) =>
715-
c.type === 'TOOL_CALL_ARGS' &&
716-
(c as any).toolCallId === 'call_1',
714+
c.type === 'TOOL_CALL_ARGS' && (c as any).toolCallId === 'call_1',
717715
)
718716
expect(toolArgsChunks).toHaveLength(1)
719717
expect((toolArgsChunks[0] as any).delta).toBe('{"city":"NYC"}')
720718

721719
const toolEndChunks = chunks.filter(
722-
(c) =>
723-
c.type === 'TOOL_CALL_END' &&
724-
(c as any).toolCallId === 'call_1',
720+
(c) => c.type === 'TOOL_CALL_END' && (c as any).toolCallId === 'call_1',
725721
)
726722
expect(toolEndChunks).toHaveLength(1)
727723

0 commit comments

Comments
 (0)