Test-Driven React 2: Tests have incorrect assertions (Page 108/109)

@TrevorBurnham

All three tests expect the same URL. One test does not use any button, one test moves forward, one backwards in the slide deck. Tests-as-written fail and rightly so.

Edit: never mind. Of course the URL stays the same as the callback doesn’t do anything, so there is no state. The tests failed for reasons of my own doing. Sorry for the noise!
Then again, it might be worth pointing out the fact that the URLs don’t change between all tests. At first glance that seems counter-intuitive. Maybe when discussing vite’s mock function implementing the onSlideIndexChange handler?