Repository URL to install this package:
|
Version:
8.0.0 ▾
|
import React from 'react';
import { mount } from 'enzyme';
import Button from '../Button';
describe('Button', () => {
it('matches the snapshot: basic button', () => {
const component = mount(<Button>Hello</Button>);
expect(component).toMatchSnapshot();
});
it('matches the snapshot: link', () => {
const component = mount(<Button href="/">Hello</Button>);
expect(component).toMatchSnapshot();
});
});