Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. const signUpForm = findRenderedComponentWithType(app, SignUpForm)
  2. signUpForm.props.change('username', 'Joe')
  3. signUpForm.props.change('password', 'isVeryAngryBecauseHeCantSignUp')
  4. Simulate.submit(signUpForm.refs.submitButton)
  5.  
  6. state {
  7. registeredFields: [
  8. { name: 'username', type: 'Field' },
  9. { name: 'password', type: 'Field' }
  10. ],
  11. fields: { username: { touched: true }, password: { touched: true } },
  12. anyTouched: true,
  13. submitting: true
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement