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

Test with Jest

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

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.