Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Vue Fullstack > Lesson 33

Sad path tests

In the tests we've written so far, we've only tested what's known as the "happy path", in other words we've been writing tests based on everything going right.

But what happens if we supply eronous data? It's important that we know our error handling is working.

GET /items/:id

Let's start by adding two more test cases to our GET /items/:id suite.

Since these are fairly simple to create, I'll show you the finished code and go through the explanation.


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom