mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 10:00:00 +00:00
test: keep undefined-token auth-choice coverage generic
This commit is contained in:
parent
dda1d98645
commit
dc2a0f5b8a
1 changed files with 4 additions and 10 deletions
|
|
@ -1628,16 +1628,10 @@ describe("applyAuthChoice", () => {
|
|||
it("does not persist literal 'undefined' when API key prompts return undefined", async () => {
|
||||
const scenarios = [
|
||||
{
|
||||
authChoice: "apiKey" as const,
|
||||
envKey: "ANTHROPIC_API_KEY",
|
||||
profileId: "anthropic:default",
|
||||
provider: "anthropic",
|
||||
},
|
||||
{
|
||||
authChoice: "openrouter-api-key" as const,
|
||||
envKey: "OPENROUTER_API_KEY",
|
||||
profileId: "openrouter:default",
|
||||
provider: "openrouter",
|
||||
authChoice: "synthetic-api-key" as const,
|
||||
envKey: "SYNTHETIC_API_KEY",
|
||||
profileId: "synthetic:default",
|
||||
provider: "synthetic",
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue