import { describe, expect, it } from "vitest";
import { render } from "@testing-library/react";
import { BouncingDots } from ".";
describe("BouncingDots", () => {
describe("snapshots", () => {
it("matches snapshot", () => {
const res = render();
expect(res.asFragment()).toMatchSnapshot();
});
it("matches props snapshot", () => {
const { container } = render(
);
expect(container).toMatchSnapshot();
});
});
it("renders the correct number of dots", () => {
const { container } = render();
const dots = container.querySelectorAll(".aje-bouncing-dots__dot");
expect(dots.length).toBe(5);
});
});