Skip to content

Commit

Permalink
#1866 eslint fixxes
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Dec 16, 2024
1 parent 81805c1 commit f2e7c9c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("TimeUpdate function", () => {

it("should update values and setIsLoading when refs are valid", () => {
// Set up valid values for refs
videoRef = { current: { currentTime: 10, duration: 100 } as any };
videoRef = { current: { currentTime: 10, duration: 100 } as HTMLVideoElement };

act(() => {
TimeUpdate(videoRef, setIsLoadingMock, progressRef, scrubberRef, timeRef);
Expand All @@ -75,7 +75,7 @@ describe("TimeUpdate function", () => {
videoRef = {
current: {
duration: 100
} as any
} as HTMLVideoElement
};

const setAttributeSpy = jest.fn();
Expand All @@ -84,7 +84,7 @@ describe("TimeUpdate function", () => {
value: 0,
getAttribute: jest.fn(),
setAttribute: setAttributeSpy
} as any
} as unknown as HTMLProgressElement
};

act(() => {
Expand Down

0 comments on commit f2e7c9c

Please sign in to comment.