chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -19,13 +19,13 @@ import { renderHook } from '@testing-library/react';
|
||||
|
||||
import { useReportTti } from '../src/index';
|
||||
|
||||
// 模拟 custom-perf-metric 模块
|
||||
// Simulate custom-perf-metric module
|
||||
vi.mock('../src/utils/custom-perf-metric', () => ({
|
||||
reportTti: vi.fn(),
|
||||
REPORT_TTI_DEFAULT_SCENE: 'init',
|
||||
}));
|
||||
|
||||
// 导入被模拟的函数,以便在测试中访问
|
||||
// Import mocked functions for access in tests
|
||||
import { reportTti } from '../src/utils/custom-perf-metric';
|
||||
|
||||
describe('useReportTti', () => {
|
||||
|
||||
Reference in New Issue
Block a user