Test with Jest
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

The Find Method

In this lesson, we'll continue working on our library in a test-driven fashion. We'll implement the find method, a method that allows us to search for existing records.

Along the way, we'll find the need for a more sophisticated architecture when it comes to the record method.

Remember to return a copy of the record, instead of the actual record so it cannot be altered outside the Model class.