This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/spec/javascript/components/loading_indicator.test.jsx

14 lines
432 B
React
Raw Normal View History

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);
});
});