feat : big update
This commit is contained in:
@@ -50,7 +50,7 @@ describe("actual administrator session boundary", () => {
|
||||
it("defaults accounts to user and requires strong new passwords", async () => {
|
||||
(await import("./server")).getAuth();
|
||||
const options = mocks.auth.mock.calls.at(-1)![0];
|
||||
expect(options.emailAndPassword).toMatchObject({ disableSignUp: true, minPasswordLength: 12 });
|
||||
expect(options.emailAndPassword).toMatchObject({ disableSignUp: false, minPasswordLength: 12 });
|
||||
expect(options.plugins).toContainEqual({ defaultRole: "user" });
|
||||
expect(options.rateLimit.customStorage.consume).toBeTypeOf("function");
|
||||
expect(options.databaseHooks).toBeUndefined();
|
||||
|
||||
Reference in New Issue
Block a user