import React from "react";
import { render } from "@testing-library/react";
import "@testing-library/jest-dom";
import { Toast } from ".";
import { toastr } from "./sub-components/Toastr";
describe("", () => {
it("renders without error", () => {
const { container } = render(
{toastr.success("Some text for toast")},
);
expect(container.getElementsByClassName("Toastify").length).toBe(1);
});
// it("accepts id", () => {
// const wrapper = mount();
// expect(wrapper.prop("id")).toEqual("testId");
// });
// it("accepts className", () => {
// const wrapper = mount();
// expect(wrapper.prop("className")).toEqual("test");
// });
});