litellm/ui/litellm-dashboard/src/utils/keyUpdateUtils.test.ts
2025-10-17 12:04:58 -07:00

12 lines
367 B
TypeScript

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");
});
});