@crossed/primitive
Version:
A universal & performant styling library for React Native, Next.js & React
18 lines (17 loc) • 770 B
JavaScript
;
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_List = require("../List");
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_List.createListMain)(Comp);
describe("createListMain", () => {
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);
await import_test.screen.findByRole("list");
});
});
//# sourceMappingURL=List.spec.js.map