react-ions
Version:
An open source set of React components that implement Ambassador's Design and UX patterns.
15 lines (11 loc) • 505 B
JavaScript
import React from 'react'
import ButtonAnchor from '../ButtonAnchor'
describe('ButtonAnchor', () => {
let wrapper
it('displays a button anchor with an external link', () => {
expect(shallow(<ButtonAnchor path='http://www.google.com' target='_blank'>External</ButtonAnchor>)).toMatchSnapshot()
})
it('displays a button anchor with an internal link', () => {
expect(shallow(<ButtonAnchor path='/components/progress-bar' internal={true}>Internal</ButtonAnchor>)).toMatchSnapshot()
})
})