Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

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

import { routingStatusToBlocked } from "./routingStatus";

describe("routingStatusToBlocked", () => {
  it.each([
    ["active", false],
    ["paused", true],
  ] as const)("maps %s to blocked=%s", (status, expected) => {
    expect(routingStatusToBlocked(status)).toBe(expected);
  });

  it("returns undefined when there is no status filter", () => {
    expect(routingStatusToBlocked(null)).toBeUndefined();
  });
});