test: Split test utilities to improve test times (#2622)

This commit is contained in:
Dermot Duffy
2026-07-26 16:29:53 -07:00
committed by GitHub
parent 8d44fcecf1
commit ad89aa9538
234 changed files with 2730 additions and 2516 deletions
@@ -90,7 +90,7 @@ describe('ImageMediaPlayerController', () => {
);
expect(await controller.getScreenshotURL()).toBe(url);
expect(screenshotImage).not.toBeCalled();
expect(screenshotImage).not.toHaveBeenCalled();
});
});
@@ -135,7 +135,7 @@ describe('ImageMediaPlayerController', () => {
await controller.playback?.play();
expect(updateControl.start).toBeCalled();
expect(updateControl.start).toHaveBeenCalled();
});
it('should stop the update loop on pause', async () => {
@@ -148,7 +148,7 @@ describe('ImageMediaPlayerController', () => {
await controller.playback?.pause();
expect(updateControl.stop).toBeCalled();
expect(updateControl.stop).toHaveBeenCalled();
});
it('should report paused when the update loop is not running', () => {