redux-fundamentals-workshop-exercises icon indicating copy to clipboard operation
redux-fundamentals-workshop-exercises copied to clipboard

Dispatching updates tests

Open leefreemanxyz opened this issue 7 years ago • 0 comments
trafficstars

The first of these tests is failing in /exercises-final and I don't think the second one is testing what it should be.

In the first test, I'm not sure what the originalText variable is being used for (as it isn't featured in the assertion), displayText is undefined, and the state is retrieved from the store, but also isn't being used in the assertion.

My changes set the textInput to newText, click the button, and compare newText with the value in the store. I hope this captures the intention of the test?

The second test appears to assign "More test text" to a variable, and then assert that the variable is equal to the string "More test text". My changes assert that the newText and displayText are equal.

leefreemanxyz avatar Jul 02 '18 10:07 leefreemanxyz