Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Test with Jest

Get access to this course, 18 others, and 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.