mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* Removed the ability to edit system posts * Added increased timeout to SpinnerButton unit tests
20 lines
541 B
JavaScript
20 lines
541 B
JavaScript
|
|
var jsdom = require('mocha-jsdom');
|
|
var assert = require('assert');
|
|
import TestUtils from 'react-addons-test-utils';
|
|
import SpinnerButton from '../components/spinner_button.jsx';
|
|
import React from 'react';
|
|
|
|
describe('SpinnerButton', function() {
|
|
this.timeout(10000);
|
|
jsdom();
|
|
|
|
it('check props', function() {
|
|
const spinner = TestUtils.renderIntoDocument(
|
|
<SpinnerButton spinning={false}/>
|
|
);
|
|
|
|
assert.equal(spinner.props.spinning, false, 'should start in the default false state');
|
|
});
|
|
});
|