react-restyle-components
Version:
Easy use restyle components
9 lines (8 loc) • 384 B
JavaScript
/* eslint-disable testing-library/render-result-naming-convention */
import React from 'react';
import { render } from '@core-utils';
import { CheckBox } from './checkBox.component';
it('render CheckBox correctly', () => {
const checkbox = render(React.createElement(CheckBox, { title: "Title", data: [], onChange: () => jest.fn() }));
expect(checkbox).toMatchSnapshot();
});