import React from 'react';
import { shallow } from 'enzyme';
import { Row } from '../';
describe('Row', () => {
it('should render .row markup', () => {
const wrapper = shallow(
);
expect(wrapper.html()).toBe('
');
});
it('should render children', () => {
const wrapper = shallow(Children
);
expect(wrapper.html()).toBe('Children
');
});
it('should pass additional classNames', () => {
const wrapper = shallow(
);
expect(wrapper.hasClass('extra')).toBe(true);
expect(wrapper.hasClass('row')).toBe(true);
});
it('show render noGutters classes', () => {
const wrapper = shallow(
);
expect(wrapper.hasClass('no-gutters')).toBe(true);
expect(wrapper.hasClass('row')).toBe(true);
});
it('show render form classes', () => {
const wrapper = shallow(
);
expect(wrapper.html()).toBe('');
});
it('should pass row col size specific classes as strings', () => {
const wrapper = shallow(
);
expect(wrapper.hasClass('row-cols-sm-6')).toBe(true);
});
it('should pass row col size specific classes as numbers', () => {
const wrapper = shallow(
);
expect(wrapper.hasClass('row-cols-sm-6')).toBe(true);
});
});