import React from "react";
import { render, screen } from "@testing-library/react";
import "@testing-library/jest-dom";
import { Text } from "../text";
import { Tooltip } from ".";
describe("", () => {
it("renders without error", () => {
render(
You tooltip text
,
);
expect(screen.queryByTestId("tooltip")).toBeInTheDocument();
});
// it("Tooltip componentDidUpdate() lifecycle test", () => {
// const wrapper = mount(
// {You tooltip text},
// ).instance();
// wrapper.componentDidUpdate(wrapper.props, wrapper.state);
// expect(wrapper.props).toBe(wrapper.props);
// });
// it("Tooltip componentDidUpdate() lifecycle test", () => {
// const wrapper = mount(
// {You tooltip text},
// ).instance();
// wrapper.componentDidUpdate(wrapper.props, wrapper.state);
// // @ts-expect-error TS(2304): Cannot find name 'expect'.
// expect(wrapper.props).toBe(wrapper.props);
// });
// it("accepts className", () => {
// const wrapper = mount();
// // @ts-expect-error TS(2304): Cannot find name 'expect'.
// expect(wrapper.prop("className")).toEqual("test");
// });
// it("accepts style", () => {
// const wrapper = mount();
// // @ts-expect-error TS(2304): Cannot find name 'expect'.
// expect(wrapper.getDOMNode().style).toHaveProperty("color", "red");
// });
});