mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-19 21:11:45 +10:00
16 lines
539 B
TypeScript
16 lines
539 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { env } from "@reactive-resume/env/server";
|
|
import { auth } from "./config";
|
|
|
|
describe("social provider signup policy", () => {
|
|
it.each(["google", "github", "linkedin"] as const)(
|
|
"allows implicit signup through %s while honoring the global signup restriction",
|
|
(provider) => {
|
|
const config = auth.options.socialProviders?.[provider];
|
|
|
|
expect(config).not.toHaveProperty("disableImplicitSignUp");
|
|
expect(config?.disableSignUp).toBe(env.FLAG_DISABLE_SIGNUPS);
|
|
},
|
|
);
|
|
});
|