fix: add hasNativeApiProtocol assertion in native tool calling tests

This commit is contained in:
Roo Code 2025-12-18 13:49:32 +00:00 committed by Dennise Bartlett
parent 134b231ffd
commit fe565781b6

View file

@ -60,6 +60,14 @@ function assertNativeProtocolUsed(verification: NativeProtocolVerification, test
`This indicates an API request was made.`,
)
// Check that native protocol was actually used (anthropic/openai format)
assert.strictEqual(
verification.hasNativeApiProtocol,
true,
`[${testName}] Native API protocol should be used. ` +
`Expected apiProtocol to be "anthropic" or "openai", but got: ${verification.apiProtocol}`,
)
// Check that response doesn't contain XML tool tags
assert.strictEqual(
verification.responseIsNotXML,