rand.test.ts 301 B

123456789101112
  1. import { describe, expect, it } from 'vitest'
  2. import { generateId, getRandomInt } from '..'
  3. describe('rand', () => {
  4. it('generateId should work', () => {
  5. expect(generateId()).to.be.a('number')
  6. })
  7. it('getRandomInt should work', () => {
  8. expect(getRandomInt(1000)).lessThan(1000)
  9. })
  10. })