UNPKG

@rocketsofawesome/mirage

Version:

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

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