Skip to content

Commit 5d9b8f1

Browse files
test: added new test cases for password utils
1 parent 0952602 commit 5d9b8f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/PasswordInput/__test__/PasswordInput.spec.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe("PasswordUtils", () => {
112112
expect(validPassword("ValidPassword123")).toBe(true);
113113
});
114114

115-
it("returns false for an invalid password", () => {
115+
it("returns true for an invalid password", () => {
116116
expect(validPassword("short")).toBe(false);
117117
expect(validPassword("noUpperNoSymbol123")).toBe(true);
118118
expect(validPassword("NoLowerNoSymbol123")).toBe(true);
@@ -124,7 +124,7 @@ describe("PasswordUtils", () => {
124124
expect(isPasswordValid("ValidPassword123")).toBe(true);
125125
});
126126

127-
it("returns false for an invalid password", () => {
127+
it("returns true for an invalid password", () => {
128128
expect(isPasswordValid("short")).toBe(false);
129129
expect(isPasswordValid("noUpperNoSymbol123")).toBe(true);
130130
expect(isPasswordValid("NoLowerNoSymbol123")).toBe(true);

0 commit comments

Comments
 (0)