Skip to content

Commit 0279b8f

Browse files
committed
test(core): reset the pending resume between idle-route tests
1 parent 169c958 commit 0279b8f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/core/src/runtime/capturedMediaIdleRoute.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ beforeEach(() => {
136136
});
137137

138138
afterEach(() => {
139+
pendingResume = null;
139140
window.__hfRuntimeTeardown?.();
140141
document.body.innerHTML = "";
141142
document.documentElement.removeAttribute("style");
@@ -212,5 +213,6 @@ describe("an element Web Audio captured, outside a play", () => {
212213
await flush();
213214

214215
expect(vo.muted).toBe(false);
216+
expect(audible(sources.get(vo))).toBe(true);
215217
});
216218
});

0 commit comments

Comments
 (0)