Add tests for modules/auth and modules/command-menu (#3548)

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Matheus <matheus_benini@hotmail.com>
This commit is contained in:
gitstart-twenty
2024-01-19 12:37:49 +01:00
committed by GitHub
parent c868347552
commit 1bb7ff3730
7 changed files with 663 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import { PASSWORD_REGEX } from '@/auth/utils/passwordRegex';
describe('PASSWORD_REGEX', () => {
it('should match passwords with at least 8 characters', () => {
const validPassword = 'password123';
const invalidPassword = '1234567';
expect(PASSWORD_REGEX.test(validPassword)).toBe(true);
expect(PASSWORD_REGEX.test(invalidPassword)).toBe(false);
});
});