Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

test(react): 舞台抛错后 showing 同样照调不抛

longmeidao6aa1e3b87d3f
diff --git a/frontend/test/react/stage.test.tsx b/frontend/test/react/stage.test.tsx
index 0e103b8c7..ac5346214 100644
--- a/frontend/test/react/stage.test.tsx
+++ b/frontend/test/react/stage.test.tsx
@@ -265,6 +265,7 @@ describe('常驻面', () => {
act(() => {
expect(api.isOpen()).toBe(true);
+ expect(api.showing(), '浮窗跟着组件卸掉了,没有能原地换条的那一种').toBeNull();
expect(api.activeVideo()).toBeNull();
expect(() => api.update({ selectMode: true })).not.toThrow();
expect(() => api.toggleTheater()).not.toThrow();