UNPKG

@rocketsofawesome/mirage

Version:

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

16 lines (13 loc) 477 B
import React from 'react' import renderer from 'react-test-renderer' import { shallow } from 'enzyme' import { css, keyframes } from 'styled-components' import 'jest-styled-components' import { theme } from 'SRC/core/theme' import StyledRect, { checked, unchecked } from './Rect.base' describe('(Base Component) Rect', () => { test('matching the snapshot', () => { const component = shallow(<StyledRect theme={theme} />) expect(component).toMatchSnapshot() }) })