import React from 'react';
import Button from '../../components/Button';
import { shallow } from '../enzyme';
describe('Button', () => {
it('should be defined', () => {
expect(Button).toBeDefined();
});
it('should render correctly', () => {
const tree = shallow();
expect(tree).toMatchSnapshot();
});
it('should be link', () => {
const tree = shallow(
);
expect(tree.find('a').hasClass('btn btn-link')).toEqual(true);
});
it('should be loading', () => {
const tree = shallow();
expect(tree.find('button').hasClass('btn btn-default')).toEqual(true);
expect(tree.find('div').first().hasClass('dot-pulse')).toEqual(true);
});
});