修复ci报错问题

This commit is contained in:
YHH
2025-07-29 09:29:29 +08:00
parent 2f71785add
commit d5471e4828
3 changed files with 36 additions and 17 deletions

View File

@@ -325,9 +325,9 @@ describe('EventBus - 事件总线测试', () => {
});
eventBus.emitPerformanceWarning({
level: 'warning',
message: 'FPS dropped below threshold',
data: { fps: 30, threshold: 60 },
operation: 'frame_render',
executionTime: 16.67,
metadata: { fps: 30, threshold: 60, message: 'FPS dropped below threshold' },
timestamp: Date.now()
});
@@ -496,8 +496,8 @@ describe('事件装饰器测试', () => {
test('EventHandler装饰器应该能够自动注册监听器', () => {
const instance = new TestClass();
// 手动调用初始化方法(在实际应用中会在构造函数中调用)
if (typeof instance.initEventListeners === 'function') {
// 手动调用初始化方法来注册装饰器定义的监听器
if (typeof (instance as any).initEventListeners === 'function') {
(instance as any).initEventListeners();
}
@@ -511,8 +511,8 @@ describe('事件装饰器测试', () => {
test('AsyncEventHandler装饰器应该能够自动注册异步监听器', async () => {
const instance = new TestClass();
// 手动调用初始化方法
if (typeof instance.initEventListeners === 'function') {
// 手动调用初始化方法来注册装饰器定义的监听器
if (typeof (instance as any).initEventListeners === 'function') {
(instance as any).initEventListeners();
}