import * as React from "react";
import { render, screen } from "@testing-library/react";
import { CarouselContent } from "./CarouselContent";
import { CarouselContext } from "./CarouselRoot";
describe("CarouselContent", () => {
const renderWithContext = (ui, contextProps) => {
return render(
{ui}
);
};
test("renders visibly into the document", () => {
renderWithContext(
Test
,
{
setTotalPages: () => undefined,
}
);
expect(screen.getByText("Test")).toBeVisible();
});
});