chore(test): 清理测试用例与类型导入

This commit is contained in:
yangjianbo
2026-02-10 00:37:56 +08:00
parent 3fcb0cc37c
commit 29ca1290b3
8 changed files with 20 additions and 71 deletions

View File

@@ -1,6 +1,5 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
import { useTableLoader } from '@/composables/useTableLoader'
import { nextTick } from 'vue'
// Mock @vueuse/core 的 useDebounceFn
vi.mock('@vueuse/core', () => ({
@@ -212,7 +211,7 @@ describe('useTableLoader', () => {
})
})
const { load, items } = useTableLoader({ fetchFn })
const { load } = useTableLoader({ fetchFn })
// 第一次加载
const p1 = load()