import { describe, it, expect } from "vitest"; import { clamp } from "../utils/number"; describe("clamp", () => { describe("clamp()", () => { it("should return a number clamped between two values", () => { expect(clamp(-50, 0, 100)).toBe(0); expect(clamp(50, 0, 100)).toBe(50); }); }); });