mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
19 lines
516 B
JavaScript
19 lines
516 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() {
|
|
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');
|
|
});
|
|
});
|