mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
7 lines
152 B
TypeScript
7 lines
152 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { calculator } from './src/calculator'
|
|
|
|
test('adds', () => {
|
|
expect(calculator('plus', 1, 2)).toBe(3)
|
|
})
|