@rocketsofawesome/mirage
Version:
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
18 lines (13 loc) • 405 B
JavaScript
import React from 'react'
import 'jest-styled-components'
import { ImageButtonBlue } from 'SRC'
const { mountWithTheme } = global
describe('(Styled Component) ImageButtonBlue', () => {
const createImageButtonBlack = (props) => {
return mountWithTheme(<ImageButtonBlue {...props} />)
}
test('matching the snapshot', () => {
expect(createImageButtonBlack())
.toMatchSnapshot()
})
})