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]

367 B
Raw Blame
import { describe, expect, it } from "vitest";
import { mapEmptyStringToNull } from "./keyUpdateUtils";

describe("keyUpdateUtils", () => {
  it("should map empty string to null", () => {
    expect(mapEmptyStringToNull("")).toBeNull();
  });

  it("should return the original string otherwise", () => {
    expect(mapEmptyStringToNull("500")).toBe("500");
  });
});