Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Enterprise Vue > Lesson 34

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...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom