2016-10-10 05:01:10 +03:00
|
|
|
import { expect } from 'chai';
|
|
|
|
import { shallow } from 'enzyme';
|
|
|
|
|
|
|
|
import LoadingIndicator from '../../../app/assets/javascripts/components/components/loading_indicator'
|
|
|
|
|
2016-10-10 23:46:37 +03:00
|
|
|
describe('<LoadingIndicator />', () => {
|
|
|
|
it('renders text that indicates loading', () => {
|
2016-10-10 05:01:10 +03:00
|
|
|
const wrapper = shallow(<LoadingIndicator />);
|
|
|
|
expect(wrapper.text()).to.match(/loading/i);
|
|
|
|
});
|
|
|
|
});
|