const test = require('node:test');
const assert = require('node:assert/strict');
const { validatePassword } = require('../src/security/passwords');

test('passwords require at least 12 characters', () => {
  assert.equal(validatePassword('short'), 'auth.passwordTooShort');
  assert.equal(validatePassword('twelve-chars!'), null);
});
