mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
13 lines
432 B
JavaScript
13 lines
432 B
JavaScript
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);
|
|
});
|
|
});
|