test: debrand final helper placeholders

This commit is contained in:
Peter Steinberger 2026-03-27 22:06:29 +00:00
parent 634db43b3f
commit a834832d26
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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),
);