Skip to content

Commit 9a93633

Browse files
hotlongCopilot
andauthored
更新 auth-and-toolcalling.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1ec6d8e commit 9a93633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/services/service-ai/src/__tests__/auth-and-toolcalling.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@ describe('streamChatWithTools', () => {
576576
// Verify order: tool-call comes before tool-result
577577
const toolCallIdx = events.findIndex(e => e.type === 'tool-call');
578578
const toolResultIdx = events.findIndex(e => e.type === 'tool-result');
579+
expect(toolCallIdx).toBeGreaterThanOrEqual(0);
580+
expect(toolResultIdx).toBeGreaterThanOrEqual(0);
579581
expect(toolCallIdx).toBeLessThan(toolResultIdx);
580582
});
581583

0 commit comments

Comments
 (0)