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