enhance: add comprehensive unit tests PR223

This commit is contained in:
Wendong-Fan 2025-09-06 06:17:32 +08:00
parent 1917d599e6
commit 7e72e6b115
6 changed files with 80 additions and 44 deletions

View file

@ -1,5 +1,5 @@
// Simple example test to verify testing setup
import { describe, it, expect } from 'vitest'
import { describe, it, expect, vi } from 'vitest'
describe('Basic Testing Setup', () => {
it('should be able to run basic tests', () => {
@ -35,7 +35,6 @@ describe('Basic Testing Setup', () => {
})
// Mock example
import { vi } from 'vitest'
const mockMathOperations = {
add: (a: number, b: number) => a + b,