about summary refs log tree commit diff
path: root/spec/javascript/components/loading_indicator.test.jsx
blob: b2f9c919e0192322fd1baf381bfb463ae3eccf76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { expect } from 'chai';
import { shallow } from 'enzyme';
import React from 'react';
global.React = React;

import LoadingIndicator from '../../../app/assets/javascripts/components/components/loading_indicator'

describe('<LoadingIndicator />', function() {
  it('renders text that indicates loading', function() {
    const wrapper = shallow(<LoadingIndicator />);
    expect(wrapper.text()).to.match(/loading/i);
  });
});