import React from "react"; import { render, screen } from "@testing-library/react"; import "@testing-library/jest-dom"; import { InputSize } from "../text-input"; import { FileInput } from "./FileInput"; describe("", () => { it("renders without error", () => { render(); expect(screen.getByTestId("file-input")).toBeInTheDocument(); }); // it("not re-render test", () => { // const onInput = jest.fn(); // const wrapper = shallow().instance(); // const shouldUpdate = wrapper.shouldComponentUpdate( // wrapper.props, // wrapper.state, // ); // expect(shouldUpdate).toBe(false); // }); // it("accepts id", () => { // const wrapper = mount(); // expect(wrapper.prop("id")).toEqual("testId"); // }); // it("accepts className", () => { // const wrapper = mount(); // expect(wrapper.prop("className")).toEqual("test"); // }); // it("accepts style", () => { // const wrapper = mount( // , // ); // expect(wrapper.getDOMNode().style).toHaveProperty("color", "red"); // }); });