mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 02:20:38 +09:00
11 lines
436 B
TypeScript
11 lines
436 B
TypeScript
|
|
import { describe, expect, it } from "vitest";
|
||
|
|
import { companyInviteExpiresAt } from "../routes/access.js";
|
||
|
|
|
||
|
|
describe("companyInviteExpiresAt", () => {
|
||
|
|
it("sets invite expiration to 10 minutes after invite creation time", () => {
|
||
|
|
const createdAtMs = Date.parse("2026-03-06T00:00:00.000Z");
|
||
|
|
const expiresAt = companyInviteExpiresAt(createdAtMs);
|
||
|
|
expect(expiresAt.toISOString()).toBe("2026-03-06T00:10:00.000Z");
|
||
|
|
});
|
||
|
|
});
|