mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
12 lines
235 B
TypeScript
12 lines
235 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { sum } from '../src/math'
|
|
import { multiple } from './src/multiply'
|
|
|
|
test('2 x 2 = 4', () => {
|
|
expect(multiple(2, 2)).toBe(4)
|
|
})
|
|
|
|
test('2 + 2 = 4', () => {
|
|
expect(sum(2, 2)).toBe(4)
|
|
})
|