| import { describe, it, expect } from 'vitest' | |
| import { generateCode, validateCodeFormat } from './codes' | |
| describe('codes util', () => { | |
| it('generateCode format', () => { | |
| const c = generateCode() | |
| expect(c).toHaveLength(5) | |
| expect(validateCodeFormat(c)).toBe(true) | |
| }) | |
| }) | |