safepassword-utils
Version:
A secure and flexible password generation and validation utility for TypeScript/JavaScript applications
17 lines (16 loc) • 549 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../index");
describe('Weak Password Strength', () => {
test('should return "Weak" for simple passwords', () => {
const result = (0, index_1.checkPasswordStrength)('password123');
expect(result.id).toBe(1);
expect(result.value).toBe('Weak');
expect(result.contains).toEqual({
lowercase: true,
uppercase: false,
number: true,
symbol: false,
});
});
});