mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
1d13ebb05d
* feat: drop jest * test: remove ssr * test: rename * chore: update tsconfig
13 lines
301 B
TypeScript
13 lines
301 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { generateId, getRandomInt } from '..'
|
|
|
|
describe('rand', () => {
|
|
it('generateId should work', () => {
|
|
expect(generateId()).to.be.a('number')
|
|
})
|
|
|
|
it('getRandomInt should work', () => {
|
|
expect(getRandomInt(1000)).lessThan(1000)
|
|
})
|
|
})
|