Skip to content

Commit

Permalink
Update testing_routes_and_controllers (#26407)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-giannantonio authored Oct 3, 2023
1 parent 35f2001 commit cd75f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nodeJS/testing_express/testing_routes_and_controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ By the end of this lesson, you should be able to do or answer the following:
- Explain and have a firm understanding of `.expect()` method's functionality.
- Have familiarity with `supertest`'s documentation and methods.

### Routes testing with supertest

The most important, basic requirement for testing something in your code is that it must be in an exported module. This is true for both custom middleware and your routes/controllers, so the very first thing you need to do is separate those things into their own modules, if they aren't already.

Expand Down

0 comments on commit cd75f08

Please sign in to comment.