test(password): replace realistic fixtures with obviously-synthetic strings

GitGuardian flagged "Bambuddy1!" and "LongerP@ssw0rd!" in password.test.ts
  as potential leaked credentials. Replace with patterned placeholders
  ("Aa1!aaaa", "Aa1!Aa1!Aa1!") that still satisfy every complexity rule
  (upper/lower/digit/special, >=8 chars) but won't trip secret scanners.
This commit is contained in:
maziggy
2026-05-13 11:13:49 +02:00
parent 9cde2e37fd
commit 1303cd2701
@@ -30,8 +30,8 @@ describe('checkPasswordComplexity', () => {
});
it('returns null for a password that meets every rule', () => {
expect(checkPasswordComplexity('Bambuddy1!')).toBeNull();
expect(checkPasswordComplexity('LongerP@ssw0rd!')).toBeNull();
expect(checkPasswordComplexity('Aa1!aaaa')).toBeNull();
expect(checkPasswordComplexity('Aa1!Aa1!Aa1!')).toBeNull();
});
it('handles a password from the #1303 user (8 digits) — the original failure mode', () => {