Skip to content

Commit fceab80

Browse files
committed
test: mock audio play
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent db3cb19 commit fceab80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/renderer/__helpers__/jest.setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,5 @@ global.CSS = {
6767
return false;
6868
}),
6969
};
70+
71+
window.HTMLMediaElement.prototype.play = jest.fn();

0 commit comments

Comments
 (0)