Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

738 B
Raw Blame
import { describe, expect, it } from "vitest";

// The initial dynamic import of the icons registry (@lobehub/icons, hundreds of
// modules) is slow in a cold vitest run; match sibling tests' timeout for the
// transform/import overhead (see agent-card.test.tsx).
describe("lobeProviderIcons Stepfun fallback", { timeout: 30_000 }, () => {
  it("loads the icon registry and resolves the color slot to the Mono component", async () => {
    const { getLobeProviderIcon } = await import("@/shared/components/lobeProviderIcons");

    const monoIcon = getLobeProviderIcon("stepfun", "mono");
    const colorIcon = getLobeProviderIcon("stepfun", "color");

    expect(monoIcon).not.toBeNull();
    expect(colorIcon).toBe(monoIcon);
  });
});