mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 17:51:22 +00:00
test: simplify provider auth error messages
This commit is contained in:
@@ -1388,7 +1388,7 @@ describe("onboard (non-interactive): provider auth", () => {
|
||||
thrown = error as Error;
|
||||
}
|
||||
expect(thrown).toBeDefined();
|
||||
const message = String(thrown?.message ?? "");
|
||||
const message = thrown?.message ?? "";
|
||||
expect(message).toContain(
|
||||
`${flagName} cannot be used with --secret-input-mode ref unless ${envVar} is set in env.`,
|
||||
);
|
||||
@@ -1631,7 +1631,7 @@ describe("onboard (non-interactive): provider auth", () => {
|
||||
thrown = error as Error;
|
||||
}
|
||||
expect(thrown).toBeDefined();
|
||||
const message = String(thrown?.message ?? "");
|
||||
const message = thrown?.message ?? "";
|
||||
expect(message).toContain(
|
||||
"--custom-api-key cannot be used with --secret-input-mode ref unless CUSTOM_API_KEY is set in env.",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user