Files
buzz-sheet/lib/presence-constants.test.ts
gunshiz 5aa0ae80c1
CI / Verify (push) Successful in 1m28s
CI / Build immutable images and deploy (push) Successful in 2m5s
feat : update
2026-09-05 18:15:06 +07:00

11 lines
362 B
TypeScript

import { describe, expect, it } from "vitest";
import { PRESENCE_HEARTBEAT_MS, PRESENCE_TTL_MS } from "./presence-constants";
describe("presence timing", () => {
it("expires only after several missed heartbeats", () => {
expect(PRESENCE_HEARTBEAT_MS).toBe(15_000);
expect(PRESENCE_TTL_MS).toBeGreaterThanOrEqual(PRESENCE_HEARTBEAT_MS * 3);
});
});