blob: 296f4eaff2f799a97b2b6065cac68f47549eae4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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');
});
});
|