import React from "react";
import "@testing-library/jest-dom";
import { render } from "@testing-library/react-native";
import { OrganismScanTicket, IUploadFileProps } from "./index";

describe("[Native] OrganismScanTicket", () => {
  it("rendered component", () => {
    const props: IUploadFileProps = {
      errorMessage: "",
      hasError: false,
      hasSuccess: true,
      onError: () => {},
      successMessage: "",
      updateError: () => {},
      updateSuccess: () => {},
      headerText: "",
      captionText: "",
      placeholderText: "",
      acceptedFormatText: "",
      onChange: () => {},
      onRemove: () => {},
      onSubmitFile: () => {},
      captionProps: {
        size: "large",
      },
      placeholderProps: {
        size: "medium",
      },
    };

    const component = render(<OrganismScanTicket {...props} />);
    expect(component).toBeTruthy();
  });
});
