
import React from 'react/addons';
import Animator from '../Animator.jsx';

const TestUtils = React.addons.TestUtils;

const animate = new Animator();

const SimpleComponent = React.createClass({
  render: function(){
    return (
      <div></div>
    );
  }
});

describe('Animator', function() {

  describe('animate()', function() {

    it('should successfully create a renderable component', function() {
      let component = null;
      after(function() {
        React.unmountComponentAtNode(React.findDOMNode(component).parentNode);
      });

      expect(() => {
        const AnimatedSimpleComponent = animate(SimpleComponent, () => {});
        component = TestUtils.renderIntoDocument(<AnimatedSimpleComponent />);
      }).to.not.throw();
    });
  });
});


import React from 'react';
import TestUtils from 'react/lib/ReactTestUtils';
import Animator from '../Animator.jsx';

const animate = new Animator();

const SimpleComponent = React.createClass({
  render: function(){
    return (
      <div></div>
    );
  }
});

describe('Animator', function() {

  describe('animate()', function() {

    it('should successfully create a renderable component', function() {
      let component = null;
      after(function() {
        React.unmountComponentAtNode(React.findDOMNode(component).parentNode);
      });

      expect(() => {
        const AnimatedSimpleComponent = animate(SimpleComponent, () => {});
        component = TestUtils.renderIntoDocument(<AnimatedSimpleComponent />);
      }).to.not.throw();
    });
  });
});

Refactor tests to (hopefully) pass the build on 0.10
Refactor tests to (hopefully) pass the build on 0.10
