Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test script in #14

Open
rzuniga64 opened this issue Jul 29, 2017 · 0 comments
Open

Test script in #14

rzuniga64 opened this issue Jul 29, 2017 · 0 comments

Comments

@rzuniga64
Copy link

Your test code wasn't passing so I had to do some research to get it to work. One thing I found was that test_helper.js might need to be updated to use ReactTestUtils instead of TestUtils.

So the following changes to test_utils.js:
import ReactTestUtils from 'react-dom/test-utils';

in renderComponent:
const componentInstance = ReactTestUtils.renderIntoDocument(

in build helper for simulating events:
$.fn.simulate = function(eventName, value) {
,,,
ReactTestUtils.SimulateeventName;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant