UNPKG

@rocketsofawesome/mirage

Version:

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

24 lines (18 loc) 567 B
import React from 'react' import { css } from 'styled-components' import 'jest-styled-components' import { NavyLink } from 'SRC' const { mountWithTheme } = global describe('(Styled Component) NavyLink', () => { const createNavyLink = (props) => { return mountWithTheme(<NavyLink {...props} />) } test('matching the snapshot', () => { expect(createNavyLink()) .toMatchSnapshot() }) test('not passing the underline prop', () => { expect(createNavyLink({underline: false})) .toHaveStyleRule({'border-bottom-color': undefined}) }) })