import { describe, expect, it } from 'vitest'
import { validateStrongPassword } from '../auth/password-policy'

describe('validateStrongPassword', () => {
  it('rejects weak passwords', () => {
    expect(validateStrongPassword('weak')).toBeTruthy()
    expect(validateStrongPassword('NoSymbols1')).toBeTruthy()
  })

  it('accepts strong passwords', () => {
    expect(validateStrongPassword('HyperTwist!9')).toBeUndefined()
  })
})
