Say I have a component that renders an <input type="text" value="whatever">. If I try to unit test it using ReactTestUtils.Simulate.change, the component gets the updated value but then the value attribute in the DOM doesn't get the update.
<input type="text" value="whatever">
ReactTestUtils.Simulate.change
value
See http://ift.tt/1QvYHCt
Aucun commentaire:
Enregistrer un commentaire