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

28 lines 850 B
import React from 'react'; import { render } from '@testing-library/react'; import DropBoxElement from "../DropBoxElement"; describe('DropBoxElement', () => { test('rendering the defult props', () => { const { asFragment } = render( /*#__PURE__*/React.createElement(DropBoxElement, null)); expect(asFragment()).toMatchSnapshot(); }); test('renders when isActive is true', () => { const { asFragment } = render( /*#__PURE__*/React.createElement(DropBoxElement, { isActive: true })); expect(asFragment()).toMatchSnapshot(); }); test('renders when isActive is true and isArrow is false', () => { const { asFragment } = render( /*#__PURE__*/React.createElement(DropBoxElement, { isActive: true, isArrow: false })); expect(asFragment()).toMatchSnapshot(); }); });