fix: align final verification scripts and expectations

This commit is contained in:
Cita
2026-03-23 14:29:44 +08:00
parent 7cc0a04b8b
commit f9316784aa
2 changed files with 26 additions and 12 deletions
+2 -1
View File
@@ -644,7 +644,8 @@ describe('chat proxy stream behavior', () => {
expect(response.statusCode).toBe(200);
const [_targetUrl, options] = fetchMock.mock.calls[0] as [string, any];
expect(options.headers['anthropic-beta']).toBe('code-2025-09-30');
expect(options.headers['anthropic-beta']).toContain('claude-code-20250219');
expect(options.headers['anthropic-beta']).toContain('code-2025-09-30');
expect(options.headers['x-claude-client']).toBe('claude-code');
const forwardedBody = JSON.parse(options.body);