The video for this lesson is currently being updated, please read the transcript instead.

Testing protected routes

If we try and run our unit tests, now, you'll see our POST /items tests fail. This is because we've now protected the item routes and are now getting 401 Unauthorized errors.

Similar to our Postman requests, we're going to need to update the tests ensure an admin user is being used.

Updating seed

To view the complete lesson you'll need to login or join this course.


Click to load comments...