Created
February 25, 2015 18:54
-
-
Save mklymyshyn/bde18104e6c792f47bd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx React.DOM */ | |
// __tests__/form-test.js | |
jest.dontMock('../form.jsx'); | |
describe('contact form', function() { | |
it('have name and text fields', function() { | |
var React = require('react/addons'); | |
var utils = React.addons.TestUtils; | |
var Form = require('../form.jsx'); | |
var form = utils.renderIntoDocument(<Form />); | |
expect(utils.findRenderedDOMComponentWithTag(form, "input")).not.toEqual(null); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment