import { describe, it, expect } from "vitest"; import { uuid } from "../src/util"; describe("uuid", () => { it("生成 36 位且不重复", () => { const a = uuid(), b = uuid(); expect(a).toMatch(/^[0-9a-f-]{36}$/); expect(a).not.toBe(b); }); });