mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 12:51:17 -05:00
Fix ENV var name
This commit is contained in:
@@ -2,9 +2,9 @@ import * as assert from "assert"
|
||||
import * as vscode from "vscode"
|
||||
|
||||
suite("Roo Code Extension", () => {
|
||||
test("OPEN_ROUTER_API_KEY environment variable is set", () => {
|
||||
if (!process.env.OPEN_ROUTER_API_KEY) {
|
||||
assert.fail("OPEN_ROUTER_API_KEY environment variable is not set")
|
||||
test("OPENROUTER_API_KEY environment variable is set", () => {
|
||||
if (!process.env.OPENROUTER_API_KEY) {
|
||||
assert.fail("OPENROUTER_API_KEY environment variable is not set")
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -29,10 +29,10 @@ suite("Roo Code Task", () => {
|
||||
|
||||
await provider.updateGlobalState("apiProvider", "openrouter")
|
||||
await provider.updateGlobalState("openRouterModelId", "anthropic/claude-3.5-sonnet")
|
||||
const apiKey = process.env.OPEN_ROUTER_API_KEY
|
||||
const apiKey = process.env.OPENROUTER_API_KEY
|
||||
|
||||
if (!apiKey) {
|
||||
assert.fail("OPEN_ROUTER_API_KEY environment variable is not set")
|
||||
assert.fail("OPENROUTER_API_KEY environment variable is not set")
|
||||
}
|
||||
|
||||
await provider.storeSecret("openRouterApiKey", apiKey)
|
||||
|
||||
Reference in New Issue
Block a user