From 99fdd1a95dfac77fbe3b1daa6eb9a34f79feaef5 Mon Sep 17 00:00:00 2001 From: LauraPinilla Date: Thu, 31 Oct 2024 17:41:34 -0600 Subject: [PATCH] fixing test --- blocks/identity-block/utils/validate-password-pattern.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/identity-block/utils/validate-password-pattern.test.js b/blocks/identity-block/utils/validate-password-pattern.test.js index f3f4076a3..420cc5d06 100644 --- a/blocks/identity-block/utils/validate-password-pattern.test.js +++ b/blocks/identity-block/utils/validate-password-pattern.test.js @@ -111,9 +111,9 @@ describe("Validate Password", () => { it("Takes matching special characters", () => { const pattern = new RegExp(validatePasswordPattern(0, 1, 0, 7, 0)); - expect(pattern.test("@$!%*?&")).toBe(true); + expect(pattern.test("@$!%*?&")).toBe(true); expect(pattern.test("---")).toBe(false); expect(pattern.test("---------")).toBe(true); - expect(pattern.test("^^^^^^^^^^^^^^^^^^^^^^^")).toBe(false); + expect(pattern.test("^^^^^^^^^^^^^^^^^^^^^^^")).toBe(true); }); });