UNPKG

safepassword-utils

Version:

A secure and flexible password generation and validation utility for TypeScript/JavaScript applications

9 lines (8 loc) 301 B
import { checkPasswordStrength } from '../index'; describe('Password Length', () => { test('should return correct length', () => { const password = 'TestPassword123!'; const result = checkPasswordStrength(password); expect(result.length).toBe(password.length); }); });