Skip to content

Commit

Permalink
Update input test.
Browse files Browse the repository at this point in the history
  • Loading branch information
twisty committed Oct 8, 2015
1 parent 196ec3c commit 0b05a61
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/__tests__/input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

jest.autoMockOff();

var React = require('react/addons');
var React = require('react');
var ReactDOM = require('react-dom');
var Formsy = require('formsy-react');
var Input = require('../input.js');
var TestUtils = React.addons.TestUtils;
var TestUtils = require('react-addons-test-utils');

describe('Input', function() {

Expand Down Expand Up @@ -35,10 +36,10 @@ describe('Input', function() {
component = TestUtils.findRenderedComponentWithType(form, Input);

// Get the label DOM node.
labelDOMNode = component.getDOMNode().querySelector('label');
labelDOMNode = ReactDOM.findDOMNode(component).querySelector('label');

// Get the input DOM node.
inputDOMNode = component.getDOMNode().querySelector('input');
inputDOMNode = ReactDOM.findDOMNode(component).querySelector('input');

});

Expand Down

0 comments on commit 0b05a61

Please sign in to comment.