chore: SDK 工程骨架(esbuild+vitest)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user