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