@rocketsofawesome/mirage
Version:
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
23 lines (18 loc) • 552 B
JavaScript
import React from 'react'
import { shallow } from 'enzyme'
import { css } from 'styled-components'
import 'jest-styled-components'
import { theme } from 'SRC/core/theme'
import StyledCheck, { checkedAnimation } from './Check.base'
const { shallowWithTheme } = global
describe('(Base Component) Check', () => {
const createBaseCheck = (props) => {
return shallowWithTheme(
<StyledCheck {...props}/>
)
}
test('matching the snapshot', () => {
const component = createBaseCheck()
expect(component).toMatchSnapshot()
})
})