You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
373 B

import { describe, expect, it } from "bun:test";
import { needsEmailVerified } from "../../server/utils/verification-policy";
describe("verification-policy", () => {
it("patch-me requires verified", () => {
expect(needsEmailVerified("patch-me")).toBe(true);
});
it("unknown defaults false", () => {
expect(needsEmailVerified("other")).toBe(false);
});
});