1 | import React from 'react';
|
2 | import {shallow, mount} from 'enzyme';
|
3 |
|
4 | import LoaderInline from './loader-inline';
|
5 |
|
6 | describe('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 | });
|