UNPKG

@crossed/primitive

Version:

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

17 lines (16 loc) 743 B
"use strict"; var import_jsx_runtime = require("react/jsx-runtime"); var import_jest_dom = require("@testing-library/jest-dom"); var import_test = require("@crossed/test"); var import_ListLabel = require("../ListLabel"); var import_react = require("react"); const Comp = (0, import_react.forwardRef)((p, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...p, ref })); const NewComp = (0, import_ListLabel.createListLabel)(Comp); describe("createListLabel", () => { test("init", async () => { const child = "Pass child"; (0, import_test.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(NewComp, { children: child })); await import_test.screen.findByText(child); }); }); //# sourceMappingURL=ListLabel.spec.js.map