I’ve been playing with React recently, and realised that I’d setup my forms incorrectly, I was not lifting the state. In fixing up some of the tests I then broke some tests that were previously working. Looking at the following code which tests do you think will pass?

The first test (from changed to test) should pass. But what about the second test (from test to test)? Somewhat naively I’d assumed that my code would trigger an event that would simply be reflected up into my code. Unfortunately this was not the case. I’m documenting this here in the hope that I’ll remember this in the future!