mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-16 03:31:10 +00:00
test: cover curated qa missing-key reply classification
This commit is contained in:
@@ -23,4 +23,12 @@ describe("extractQaFailureReplyText", () => {
|
||||
),
|
||||
).toContain('No API key found for provider "openai".');
|
||||
});
|
||||
|
||||
it("classifies curated missing-key guidance as a failure", () => {
|
||||
expect(
|
||||
extractQaFailureReplyText(
|
||||
"⚠️ Missing API key for OpenAI on the gateway. Use `openai-codex/gpt-5.4` for OAuth, or set `OPENAI_API_KEY`, then try again.",
|
||||
),
|
||||
).toContain("Missing API key for OpenAI on the gateway.");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user