UNPKG

@rocketsofawesome/mirage

Version:

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

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