Release v2.5.6
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
const test = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
|
||||
const { validatePasswordStrength } = require('../src/auth');
|
||||
|
||||
test('password strength requires a longer mixed-character password', () => {
|
||||
assert.equal(validatePasswordStrength('weakpass'), 'Password must be at least 10 characters and include 3 of: uppercase, lowercase, number, and symbol.');
|
||||
assert.equal(validatePasswordStrength('1234567890'), 'Password must be at least 10 characters and include 3 of: uppercase, lowercase, number, and symbol.');
|
||||
assert.equal(validatePasswordStrength('Password12'), '');
|
||||
assert.equal(validatePasswordStrength('NewPassword!1'), '');
|
||||
});
|
||||
Reference in New Issue
Block a user