import { describe, it, expect } from 'vitest'

describe('示例单元测试', () => {
  it('应该通过基本的数学运算测试', () => {
    expect(1 + 1).toBe(2)
  })

  it('应该验证字符串操作', () => {
    const str = 'hello'
    expect(str.toUpperCase()).toBe('HELLO')
  })

  it('应该处理异步操作', async () => {
    const result = await Promise.resolve(42)
    expect(result).toBe(42)
  })
})