diff --git a/blocks/identity-block/utils/validate-password-pattern.test.js b/blocks/identity-block/utils/validate-password-pattern.test.js index 2e2dc9b79..f3f4076a3 100644 --- a/blocks/identity-block/utils/validate-password-pattern.test.js +++ b/blocks/identity-block/utils/validate-password-pattern.test.js @@ -112,7 +112,8 @@ describe("Validate Password", () => { const pattern = new RegExp(validatePasswordPattern(0, 1, 0, 7, 0)); expect(pattern.test("@$!%*?&")).toBe(true); - expect(pattern.test("---------")).toBe(false); + expect(pattern.test("---")).toBe(false); + expect(pattern.test("---------")).toBe(true); expect(pattern.test("^^^^^^^^^^^^^^^^^^^^^^^")).toBe(false); }); });