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 All Method

In this lesson, we'll work on retrieving all entries in our model. Since JavaScript pass arrays by reference we need to be careful with our model and make sure we serve a copy of our data. In this lesson, you'll learn how to test that you actually return a copy of your model entries.