import React from 'react';
import { mount } from 'enzyme';
import MainButton from '.';
import Button from '../button';
describe('', () => {
it('renders without error', () => {
const wrapper = mount(
Some button
);
expect(wrapper).toExist();
});
it('accepts id', () => {
const wrapper = mount(
Some button
);
expect(wrapper.prop('id')).toEqual('testId');
});
it('accepts className', () => {
const wrapper = mount(
Some button
);
expect(wrapper.prop('className')).toEqual('test');
});
it('accepts style', () => {
const wrapper = mount(
Some button
);
expect(wrapper.getDOMNode().style).toHaveProperty('color', 'red');
});
});