Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraPinilla committed Oct 31, 2024
1 parent 54d622f commit 99fdd1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/identity-block/utils/validate-password-pattern.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 99fdd1a

Please sign in to comment.