UNPKG

@zohodesk/components

Version:

Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development

15 lines 718 B
import React from 'react'; import { render } from '@testing-library/react'; import Modal from "../Modal"; describe('Modal', () => { test('rendering the defult props', () => { const { baseElement } = render( /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", { "data-portal": "testPortal" }), /*#__PURE__*/React.createElement(Modal, { portalId: "testPortal" }, /*#__PURE__*/React.createElement("div", null, "Modal Div Check")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, null, /*#__PURE__*/React.createElement("div", null, "Modal outer div check"))))); expect(baseElement).toMatchSnapshot(); }); });