UNPKG

@rocketsofawesome/mirage

Version:

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

18 lines (13 loc) 357 B
import React from 'react' import 'jest-styled-components' import { Serif } from 'SRC' const { shallowWithTheme } = global describe('(Styled Component) Serif', () => { const createSerif = (props) => { return shallowWithTheme(<Serif {...props} />) } test('matching the snapshot', () => { expect(createSerif()) .toMatchSnapshot() }) })