import { cleanup, render } from "@testing-library/react";
import React from "react";
import { afterEach, describe, expect, it } from "vitest";
import { Bounce, CircleFade, Flow, Pulse } from "./loading";
afterEach(cleanup);
describe("Loading Components", () => {
    it("Pulse should render", () => {
        const { container } = render(<Pulse size={20} color="red"/>);
        expect(container.firstChild).toBeTruthy();
    });
    it("Bounce should render", () => {
        const { container } = render(<Bounce size={20} color="red"/>);
        expect(container.firstChild).toBeTruthy();
    });
    it("Flow should render", () => {
        const { container } = render(<Flow size={20} color="red"/>);
        expect(container.firstChild).toBeTruthy();
    });
    it("CircleFade should render", () => {
        const { container } = render(<CircleFade size={20} color="red"/>);
        expect(container.firstChild).toBeTruthy();
    });
});
