Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select
- className="province-select"
- onChange={this.regionSelected}
- >
- <option>
- Ontario
- </option>
- <option>
- Quebec
- </option>
- </select>
- const wrapperSuccess = shallow(<RegionSelector {...validData} />);
- wrapperSuccess.find("province-select").simulate('change', { target: { value: 'Ontario' } });
- setCurrentRegion(e.target.value)
Add Comment
Please, Sign In to add comment