Guest User

Untitled

a guest
Jan 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <select
  2. className="province-select"
  3. onChange={this.regionSelected}
  4. >
  5. <option>
  6. Ontario
  7. </option>
  8. <option>
  9. Quebec
  10. </option>
  11. </select>
  12.  
  13. const wrapperSuccess = shallow(<RegionSelector {...validData} />);
  14.  
  15. wrapperSuccess.find("province-select").simulate('change', { target: { value: 'Ontario' } });
  16.  
  17. setCurrentRegion(e.target.value)
Add Comment
Please, Sign In to add comment