From eb44c349b33b27c9429062f55c097ebbc415045c Mon Sep 17 00:00:00 2001 From: karahanharunn Date: Fri, 6 Sep 2024 09:47:15 +0200 Subject: [PATCH] chore: type update --- .../video-player-native/src/__tests__/VideoPlayer.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pluggableWidgets/video-player-native/src/__tests__/VideoPlayer.spec.tsx b/packages/pluggableWidgets/video-player-native/src/__tests__/VideoPlayer.spec.tsx index 53474e567..3ac55e14d 100644 --- a/packages/pluggableWidgets/video-player-native/src/__tests__/VideoPlayer.spec.tsx +++ b/packages/pluggableWidgets/video-player-native/src/__tests__/VideoPlayer.spec.tsx @@ -2,7 +2,7 @@ import { dynamicValue } from "@mendix/piw-utils-internal"; import { createElement } from "react"; import { Modal, View } from "react-native"; import { fireEvent, render, waitFor } from "@testing-library/react-native"; -import { VideoProperties } from "react-native-video"; +import { ReactVideoProps } from "react-native-video"; import { VideoPlayer } from "../VideoPlayer"; import { VideoPlayerProps } from "../../typings/VideoPlayerProps"; @@ -38,7 +38,7 @@ describe("VideoPlayer", () => { it("passes the right props to the video player", () => { const component = render(); - const props = component.getByTestId("video-player-test").props as VideoProperties; + const props = component.getByTestId("video-player-test").props as ReactVideoProps; expect(props.source).toEqual({ uri: "https://mendix.com/video.mp4" }); expect(props.paused).toBe(true);