djstevenson / songs-to-the-siren

A blog about songs
MIT License
0 stars 0 forks source link

Cancel-edit tests should be better #187

Closed djstevenson closed 4 years ago

djstevenson commented 4 years ago

At the moment, they hit cancel() without changing any of the fields.

A better test would type a new value into the field, hit cancel, then ensure that the object wasn't updated with the new value.