mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
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:
parent
4345009015
commit
a0127d8a12
1 changed files with 3 additions and 4 deletions
|
|
@ -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}`)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue