fix: 修复引用文件错误并移除无用代码
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user