This commit is contained in:
Kinfe123
2025-04-13 14:18:48 +03:00
parent 8836938b7b
commit feebaa8162

View File

@@ -22,7 +22,9 @@ describe("have-i-been-pwned", async () => {
});
expect(result.error).not.toBeNull();
expect(result.error?.status).toBe(400);
expect(result.error?.code).toBe("THE_PASSWORD_YOU_ENTERED_HAS_BEEN_COMPROMISED_PLEASE_CHOOSE_A_DIFFERENT_PASSWORD");
expect(result.error?.code).toBe(
"THE_PASSWORD_YOU_ENTERED_HAS_BEEN_COMPROMISED_PLEASE_CHOOSE_A_DIFFERENT_PASSWORD",
);
});
it("should allow account creation with strong, uncompromised password", async () => {
@@ -61,4 +63,3 @@ describe("have-i-been-pwned", async () => {
expect(result.error?.status).toBe(400);
});
});