mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-01 01:18:34 +00:00
12 lines
367 B
TypeScript
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");
|
|
});
|
|
});
|