File size: 295 Bytes
9853b20
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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)
  })
})