import { render } from "@testing-library/react";
import React from "react";
import { Loader } from "./loader.component";
describe("Loader", () => {
it("should render a component (with isActive = true)", () => {
const { getByTestId } = render();
const icon = getByTestId("icon_radio-circle");
expect(icon).toBeTruthy();
});
it("should render a component (with isActive = false)", () => {
const { queryByTestId } = render();
const icon = queryByTestId("icon_radio-circle");
expect(icon).toBeFalsy();
});
});