/**
 * StartButton.spec.js
 */
/*global jest, jasmine:true */
jest.dontMock('../StartButton.jsx');

var React = require('react/addons');
var StartButton = require('../StartButton.jsx');
var TestUtils = React.addons.TestUtils;
var Simulate = TestUtils.Simulate;

describe('StartButton', function() {
  it ('start button', function() {
    var time = 1429453037035;
    var mockDate = {
      getTime: jest.genMockFunction().mockReturnValue(time)
    };

    var mockCallback = jest.genMockFunction();
    var startButton = TestUtils.renderIntoDocument(
      <StartButton onStartClick={mockCallback} date={mockDate} />
    );

    expect(startButton.getDOMNode().textContent).toEqual('Start');

    var node = startButton.getDOMNode();
    Simulate.click(node);

    expect(mockCallback).toBeCalledWith(time);
  });
});

@@ -134,57 +134,8 @@
 ');%0A
-var StartButton = require('../StartButton.jsx');%0A
 var 
@@ -206,16 +206,66 @@
 ulate;%0A%0A
+var StartButton = require('../StartButton.jsx');%0A%0A
 describe
@@ -297,30 +297,22 @@
 ) %7B%0A
-  it ('start button', 
+%0A  beforeEach(
 func
@@ -324,20 +324,21 @@
 ) %7B%0A    
-var 
+this.
 time = 1
@@ -351,28 +351,78 @@
 037035;%0A    
-var 
+this.mockCallback = jest.genMockFunction();%0A%0A    this.
 mockDate = %7B
@@ -476,16 +476,21 @@
 rnValue(
+this.
 time)%0A  
@@ -503,59 +503,13 @@
     
-var mockCallback = jest.genMockFunction();%0A    var 
+this.
 star
@@ -581,16 +581,21 @@
 tClick=%7B
+this.
 mockCall
@@ -606,16 +606,21 @@
 %7D date=%7B
+this.
 mockDate
@@ -631,16 +631,72 @@
 %0A    );%0A
+  %7D);%0A%0A%0A  it ('StartButton has Start text', function() %7B
 %0A    exp
@@ -699,16 +699,21 @@
  expect(
+this.
 startBut
@@ -760,16 +760,93 @@
 tart');%0A
+  %7D);%0A%0A  it ('When StartButton clicked, call callback function', function() %7B
 %0A    var
@@ -853,16 +853,21 @@
  node = 
+this.
 startBut
@@ -922,16 +922,21 @@
  expect(
+this.
 mockCall
@@ -956,16 +956,21 @@
 ledWith(
+this.
 time);%0A 

Refactor test case.