var chai = require('chai'),
    sinon = require('sinon'),
    sinonChai = require('sinon-chai'),
    path = require('path'),
    React = require('react');


global.expect = chai.expect;


chai.use(sinonChai);


beforeEach(function() {
  /**
   * Prepare a container to mount the component before each test.
   */

  this.container = document.createElement('div');
});


afterEach(function() {
  /**
   * Unmount the component after each test.
   */

  React.unmountComponentAtNode(this.container);
});


@@ -251,195 +251,590 @@
 are 
-a container to mount the component before each test.%0A   */%0A%0A  this.container = document.createElement('div');%0A%7D);%0A%0A%0AafterEach(function() %7B%0A  /**%0A   * Unmount the component after each test
+stuff that you might need in tests.%0A   *%0A   * Create a simple div container in which you can mount your component. If you%0A   * mount it in that container, it will automatically be unmounted when the%0A   * test finishes.%0A   *%0A   * Also, create a sinon sandbox to use to create spies and stubs that are%0A   * cleaned up after the test finishes.%0A   */%0A%0A  this.sandbox = sinon.sandbox.create();%0A  this.container = document.createElement('div');%0A%7D);%0A%0A%0AafterEach(function() %7B%0A  /**%0A   * Do some cleaning up.%0A   *%0A   * Unmount the component found in the container and clear the sinon sandbox
 .%0A  
@@ -886,13 +886,39 @@
 ainer);%0A
+  this.sandbox.restore();%0A
 %7D);%0A%0A

Create a sandbox before each test and clean it up afterwards