Skip to content

Commit

Permalink
chore: type update
Browse files Browse the repository at this point in the history
  • Loading branch information
karahanharunn committed Sep 6, 2024
1 parent be581ef commit eb44c34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -38,7 +38,7 @@ describe("VideoPlayer", () => {

it("passes the right props to the video player", () => {
const component = render(<VideoPlayer {...defaultProps} />);
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);
Expand Down

0 comments on commit eb44c34

Please sign in to comment.