chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -16,27 +16,27 @@
import { vi } from 'vitest';
// 定义一个模拟的 Worker
// Define a simulated Worker class
class MockWorker {
constructor(
public scriptURL: string,
public options: any,
) {}
// 添加 Worker 接口所需的方法
// Methods required to add a Worker interface
terminate(): void {
// 空实现
// empty implementation
}
postMessage(): void {
// 空实现
// empty implementation
}
onmessage = null;
onmessageerror = null;
}
// 全局模拟
// global simulation
global.Worker = MockWorker as any;
global.URL = {
createObjectURL: vi.fn().mockReturnValue('blob:mocked-object-url'),