UNPKG

@rocketsofawesome/mirage

Version:

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

19 lines (13 loc) 425 B
import React from 'react' import 'jest-styled-components' import { ProgressBarText } from 'SRC' const { shallowWithTheme } = global describe('(Styled Component) ProgressBarText', () => { const createProgressBarText = (props) => { return shallowWithTheme(<ProgressBarText {...props} />) } test('matching the snapshot', () => { expect(createProgressBarText({ itemsInBag: 3 })) .toMatchSnapshot() }) })