import * as React from 'react';
import { shallow } from 'enzyme';
import LoadingIndicatorWrapper, { LoadingIndicatorWrapperPosition } from '../LoadingIndicatorWrapper';
describe('components/loading-indicator/LoadingIndicatorWrapper', () => {
test('should render with default properties intact', () => {
const wrapper = shallow(
,
);
expect(wrapper).toMatchSnapshot();
});
test('should render with children in default properties', () => {
const child =
child
;
const wrapper = shallow({child});
expect(wrapper).toMatchSnapshot();
});
test('should render loader properly when specificed', () => {
const child = child
;
const wrapper = shallow({child});
expect(wrapper).toMatchSnapshot();
});
test('should allow custom classnames on wrapper', () => {
const child = child
;
const wrapper = shallow(
{child}
,
);
expect(wrapper).toMatchSnapshot();
});
test('should take in crawler position top', () => {
const child = child
;
const wrapper = shallow(
{child}
,
);
expect(wrapper).toMatchSnapshot();
});
test('should pass thru any rest properties', () => {
const wrapper = shallow(
,
);
expect(wrapper).toMatchSnapshot();
});
test('should hide content', () => {
const wrapper = shallow(
,
);
expect(wrapper).toMatchSnapshot();
});
});