Update apps/vscode-e2e/src/suite/tools/write-to-file-native.test.ts

Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
This commit is contained in:
Dennise Bartlett 2025-12-31 06:51:39 -08:00 committed by GitHub
parent 4345009015
commit a0127d8a12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,14 +44,13 @@ function createVerificationState(): NativeProtocolVerification {
function assertNativeProtocolUsed(verification: NativeProtocolVerification, testName: string): void {
assert.ok(verification.apiProtocol !== null, `[${testName}] apiProtocol should be set in api_req_started message.`)
assert.strictEqual(verification.responseIsNotXML, true, `[${testName}] Response should NOT contain XML tool tags.`)
assert.strictEqual(
verification.toolWasExecuted,
verification.hasNativeApiProtocol,
true,
`[${testName}] Tool should have been executed. Executed tool: ${verification.executedToolName || "none"}`,
`[${testName}] Native API protocol should be used. Expected apiProtocol to be "anthropic" or "openai", but got: ${verification.apiProtocol}`,
)
assert.strictEqual(verification.responseIsNotXML, true, `[${testName}] Response should NOT contain XML tool tags.`)
console.log(`[${testName}] ✓ Native protocol verification passed`)
console.log(` - API Protocol: ${verification.apiProtocol}`)
console.log(` - Response is not XML: ${verification.responseIsNotXML}`)