@rocketsofawesome/mirage
Version:
[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)
19 lines (14 loc) • 417 B
JavaScript
import React from 'react'
import { css } from 'styled-components'
import 'jest-styled-components'
import Example from './breakpointExample'
const { shallowWithTheme } = global
describe('(Style Component) Example', () => {
const createExample = (props) => {
return shallowWithTheme(<Example{...props} />)
}
test('matching the snapshot', () => {
expect(createExample())
.toMatchSnapshot()
})
})