From 935380a41f7276b90e61091d49414cfa3b69d250 Mon Sep 17 00:00:00 2001 From: felix-hoc Date: Thu, 19 Dec 2024 11:21:14 +0100 Subject: [PATCH] Fix unit tests --- spec/components/seekbar.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/components/seekbar.spec.ts b/spec/components/seekbar.spec.ts index 3a09d6888..d09711fcb 100644 --- a/spec/components/seekbar.spec.ts +++ b/spec/components/seekbar.spec.ts @@ -114,7 +114,7 @@ describe('SeekBar', () => { jest.spyOn(playerMock, 'getSeekableRange').mockImplementation(() => ({start: 26, end: 30})); - seekbar['onSeekPreviewEvent'](40, true) + seekbar['onSeekPreviewEvent'](40, 100, true); playerMock.eventEmitter.fireSegmentRequestFinished(); @@ -127,19 +127,19 @@ describe('SeekBar', () => { it('will update the scrubber location after a successful segment request download and the user is not scrubbing', () => { jest.spyOn(playerMock, 'getSeekableRange').mockImplementation(() => ({start: 26, end: 30})); - seekbar['onSeekPreviewEvent'](18, false) + seekbar['onSeekPreviewEvent'](18, 100, false); playerMock.eventEmitter.fireSegmentRequestFinished(); expect(setPlaybackPositionSpy).toHaveBeenLastCalledWith(18); - expect(setBufferPositionSpy).toHaveBeenLastCalledWith(18) + expect(setBufferPositionSpy).toHaveBeenLastCalledWith(18); }); }); }); describe('group playback', () => { beforeEach(() => { - jest.spyOn(playerMock, 'getDuration').mockReturnValue(0) + jest.spyOn(playerMock, 'getDuration').mockReturnValue(0); seekbar.configure(playerMock, uiInstanceManagerMock); });