jeudi 28 janvier 2016

React: value never updated in unit test

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.

See http://ift.tt/1QvYHCt

Aucun commentaire:

Enregistrer un commentaire