getInitialState () {
return {
- now: new Date()
+ now: (new Date()).toString()
};
},
mixins: [PureRenderMixin],
componentDidMount () {
- this._interval = setInterval(() => this.setState({ now: new Date() }), 60000);
+ this._interval = setInterval(() => this.setState({ now: (new Date()).toString() }), 60000);
},
componentWillUnmount () {
import LoadingIndicator from '../../../app/assets/javascripts/components/components/loading_indicator'
describe('<LoadingIndicator />', () => {
- it('renders text that indicates loading', () => {
- const wrapper = shallow(<LoadingIndicator />);
- expect(wrapper.text()).to.match(/loading/i);
- });
+
});