UNPKG

566 BJavaScriptView Raw
1import React from 'react';
2import {shallow, mount} from 'enzyme';
3
4import LoaderInline from './loader-inline';
5
6describe('Loader Inline', () => {
7 const shallowLoaderInline = props => shallow(<LoaderInline {...props}/>);
8 const mountLoaderInline = props => mount(<LoaderInline {...props}/>);
9
10 it('should create component', () => {
11 mountLoaderInline().should.have.type(LoaderInline);
12 });
13
14 it('should add custom class', () => {
15 const wrapper = shallowLoaderInline({
16 className: 'test'
17 });
18
19 wrapper.should.have.className('test');
20 });
21});