/**
 * (password length bounds and requirement key order).
 */
import {
  PASSWORD_MIN_LENGTH,
  PASSWORD_MAX_LENGTH,
  PASSWORD_REQUIREMENT_KEYS,
} from '@/constants/password'

describe('[constants/password]', () => {
  it('enforces 8–20 character policy window', () => {
    expect(PASSWORD_MIN_LENGTH).toBe(8)
    expect(PASSWORD_MAX_LENGTH).toBe(20)
  })

  it('PASSWORD_REQUIREMENT_KEYS matches PasswordChecks shape (5 keys)', () => {
    expect(PASSWORD_REQUIREMENT_KEYS).toHaveLength(5)
    expect(PASSWORD_REQUIREMENT_KEYS).toEqual([
      'length',
      'upper',
      'lower',
      'digit',
      'special',
    ])
  })
})
