import React from 'react';
import { shallow } from 'enzyme';
import { ModalFooter } from '../';
describe('ModalFooter', () => {
it('should render with "modal-footer" class', () => {
const wrapper = shallow(Yo!);
expect(wrapper.text()).toBe('Yo!');
expect(wrapper.hasClass('modal-footer')).toBe(true);
});
it('should render additional classes', () => {
const wrapper = shallow(Yo!);
expect(wrapper.hasClass('modal-footer')).toBe(true);
expect(wrapper.hasClass('other')).toBe(true);
});
it('should render custom tag', () => {
const wrapper = shallow(Yo!);
expect(wrapper.text()).toBe('Yo!');
expect(wrapper.hasClass('modal-footer')).toBe(true);
expect(wrapper.type()).toBe('main');
});
});