mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 19:01:44 +00:00
test: debrand final helper placeholders
This commit is contained in:
@@ -350,14 +350,14 @@ describe("buildTokenChannelStatusSummary", () => {
|
||||
describe("collectStatusIssuesFromLastError", () => {
|
||||
it("returns runtime issues only for non-empty string lastError values", () => {
|
||||
expect(
|
||||
collectStatusIssuesFromLastError("telegram", [
|
||||
collectStatusIssuesFromLastError("demo-channel", [
|
||||
{ accountId: "default", lastError: " timeout " },
|
||||
{ accountId: "silent", lastError: " " },
|
||||
{ accountId: "typed", lastError: { message: "boom" } },
|
||||
]),
|
||||
).toEqual([
|
||||
{
|
||||
channel: "telegram",
|
||||
channel: "demo-channel",
|
||||
accountId: "default",
|
||||
kind: "runtime",
|
||||
message: "Channel error: timeout",
|
||||
|
||||
@@ -17,7 +17,7 @@ type ResolvePluginProvidersRuntime =
|
||||
const ensureAuthProfileStore = vi.hoisted(() => vi.fn(() => ({ profiles: {} })));
|
||||
const promptAuthChoiceGrouped = vi.hoisted(() => vi.fn(async () => "skip"));
|
||||
const applyAuthChoice = vi.hoisted(() => vi.fn(async (args) => ({ config: args.config })));
|
||||
const resolvePreferredProviderForAuthChoice = vi.hoisted(() => vi.fn(async () => "openai"));
|
||||
const resolvePreferredProviderForAuthChoice = vi.hoisted(() => vi.fn(async () => "demo-provider"));
|
||||
const resolveProviderPluginChoice = vi.hoisted(() =>
|
||||
vi.fn<ResolveProviderPluginChoice>(() => null),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user