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

19 lines 544 B
import React from 'react'; import { render } from '@testing-library/react'; import GroupSelect from "../GroupSelect"; describe('GroupSelect', () => { test('rendering the defult props', () => { const mockOnChange = jest.fn(); const { asFragment } = render( /*#__PURE__*/React.createElement(GroupSelect, { selectedOption: { selectedOption: [] }, selected: "Groupselecet", emptyMessage: "GroupEmptyMsg", onChange: mockOnChange })); expect(asFragment()).toMatchSnapshot(); }); });