feat(project): init

This commit is contained in:
zhangheng
2026-04-25 11:26:33 +08:00
commit 9bf212f67c
63 changed files with 11141 additions and 0 deletions

9
tests/quota.test.ts Normal file
View File

@@ -0,0 +1,9 @@
import test from "node:test";
import assert from "node:assert/strict";
import { getCurrentPeriodKey } from "../lib/quota-core";
test("getCurrentPeriodKey formats a UTC year-month string", () => {
const periodKey = getCurrentPeriodKey(new Date("2026-04-24T08:00:00.000Z"));
assert.equal(periodKey, "2026-04");
});