import { describe, expect, it } from "bun:test"; import { hashPassword, verifyPassword } from "../../server/utils/password"; describe("password", () => { it("hashes and verifies", async () => { const h = await hashPassword("hunter2"); expect(await verifyPassword("hunter2", h)).toBe(true); expect(await verifyPassword("wrong", h)).toBe(false); }); });