Test with Jest - Hands on TDD - The Update Method
In this lesson, we'll implement the update method. We will write tests and specs for both updating and extending an existing entry, as well as for the error handling in case the entry doesn't exist in the collection.