UNPKG

@crossed/primitive

Version:

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

17 lines (16 loc) 586 B
import { jsx } from "react/jsx-runtime"; import { render } from "@crossed/test"; import { RemoveScroll } from "../index"; describe("RemoveScroll web", () => { test("whithout children", () => { const { container } = render(/* @__PURE__ */ jsx(RemoveScroll, {})); expect(container.innerHTML).toBe(""); }); test("with children", () => { const { container } = render( /* @__PURE__ */ jsx(RemoveScroll, { children: /* @__PURE__ */ jsx("div", {}) }) ); expect(container.innerHTML).toBe("<div><div></div></div>"); }); }); //# sourceMappingURL=web.spec.js.map