删除退役策划事件测试
移除 planning-session-v2-stream 订阅注销测试 保留通用 Tauri 事件订阅竞态回归覆盖
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user