UNPKG

@crossed/primitive

Version:

A universal & performant styling library for React Native, Next.js & React

16 lines (15 loc) 577 B
import { jsx } from "react/jsx-runtime"; import "@testing-library/jest-dom"; import { render, screen } from "@crossed/test"; import { createListTitle } from "../ListTitle"; import { forwardRef } from "react"; const Comp = forwardRef((p, ref) => /* @__PURE__ */ jsx("div", { ...p, ref })); const NewComp = createListTitle(Comp); describe("createListTitle", () => { test("init", async () => { const child = "Pass child"; render(/* @__PURE__ */ jsx(NewComp, { children: child })); await screen.findByText(child); }); }); //# sourceMappingURL=ListTitle.spec.js.map