concept cake in category javascript
appears as: cake, cakes

This is an excerpt from Manning's book Testing JavaScript Applications.
Even if your changes build on top of hers, tests will serve as up-to-date documentation to guide further work. Well written tests are the best documentation a developer can have. Because they need to be passing, they will always be up-to-date. If you are going to write technical documentation anyway, why not write a test instead?
Figure 4.1. What tests can access if an application isn’t designed with testing in mind.
![]()