import { render, screen } from "@testing-library/react";
import { Loader } from "./Loader";
describe("Loader", () => {
it("should render a component (when isActive = true)", () => {
render();
const icon = screen.getByTestId("icon_loader");
expect(icon).toBeTruthy();
expect(icon).toBeInTheDocument();
});
it("should render a component (when isActive = false)", () => {
render();
const icon = screen.queryByTestId("icon_loader");
expect(icon).toBeFalsy();
expect(icon).not.toBeInTheDocument();
});
});