diff --git a/apps/ai-game-creator-shell/tests/tauriEventSubscription.test.ts b/apps/ai-game-creator-shell/tests/tauriEventSubscription.test.ts index 43a9aa8e3..7108ebc67 100644 --- a/apps/ai-game-creator-shell/tests/tauriEventSubscription.test.ts +++ b/apps/ai-game-creator-shell/tests/tauriEventSubscription.test.ts @@ -121,22 +121,6 @@ describe('subscribeTauriEvent', () => { expect(handler).toHaveBeenCalledTimes(1); }); - it('真实 WebView 内不经过会读注册表的库内注销脚本', async () => { - fake = createTauriEventFake(); - fake.install(); - - const unsubscribe = await subscribeTauriEvent( - 'planning-session-v2-stream', - vi.fn(), - ); - unsubscribe(); - - // 库内 listen 一次都没用到:AGC 自己走 event 插件 invoke。 - expect(fake.bridgeListenCalls).toBe(0); - expect(fake.racyUnregisterCalls).toBe(0); - expect(fake.racyUnregisterViolations).toEqual([]); - }); - it('没有原生 internals 时回落到注入的事件桥接(jsdom 替身 / 浏览器预览)', async () => { fake = createTauriEventFake(); fake.install();