fix: 修复引用文件错误并移除无用代码

This commit is contained in:
ren
2025-10-16 10:19:35 +08:00
parent d4445c053d
commit 365405214b
3 changed files with 15 additions and 583 deletions

View File

@@ -17,7 +17,6 @@ const mockFetch = vi.fn();
global.fetch = mockFetch;
describe('测试 http.js 文件', () => {
/**
* 设置 HTTP Mock 的辅助函数
*
@@ -64,7 +63,7 @@ describe('测试 http.js 文件', () => {
afterEach(() => {
// 恢复所有 mocks
vi.restoreAllMocks();
// 重新设置 fetch mock
mockFetch.mockClear();
});