Skip to content
Closed
2 changes: 1 addition & 1 deletion Sprint-3/3-stretch/password-validator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test("password has at least one number", () => {
// password has at least one symbol:
test("password has at least one symbol: (!, #, $, %, ., *, &)", () => {

const password = "abcd12";
const password = "abcd!1";
const result = isValidPassword(password);
expect(result).toEqual(false);
}
Comment on lines 56 to 61
Copy link
Copy Markdown
Contributor

@cjyuan cjyuan Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two possible reasons the test could pass;
the new password does not contain any uppercase letter (in addition to not containing any symbol).

Comment on lines 56 to 61
Copy link
Copy Markdown
Contributor

@cjyuan cjyuan Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something about this test is still not quite right. Can you fix the issue?

Expand Down
Loading