mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
16 lines
260 B
TypeScript
16 lines
260 B
TypeScript
/* body */
|
|
import { expect, it } from 'vitest'
|
|
import { add } from './utils'
|
|
|
|
interface Num {
|
|
count: number
|
|
}
|
|
|
|
const a: Num = { count: 10 }
|
|
|
|
it('add', () => {
|
|
expect(add(a.count)).toBe(100)
|
|
expect(add(1)).toBe(1)
|
|
return expect(add(1, 2, 3)).toBe(6)
|
|
})
|