UNPKG

@rocketsofawesome/mirage

Version:

[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)

25 lines (20 loc) 503 B
import React from 'react' import 'jest-styled-components' import { CheckboxButton } from 'SRC' const { mountWithTheme } = global const defaultProps = { input: {} } describe('(Styled Component) CheckboxButton', () => { const createCheckboxButton = (inProps) => { const props = { ...defaultProps, ...inProps } return mountWithTheme(<CheckboxButton {...props} />) } test('matching the snapshot', () => { expect(createCheckboxButton()) .toMatchSnapshot() }) })