This Lesson is for PRO Members.

Subscribe today and get access to all lessons! Plus direct HD download
for offline use, member comment forums, and iTunes "podcast" RSS feed.
Level up your skills now!

UNLOCK THIS LESSON

Already subscribed? Sign In

HIDE PLAYLIST

30% off

1 Year Pro Membership

Test Node RESTful API with Mocha and Chai


In this lesson, we will use Chai's request method to test our Node application's API responses. By the end of this lesson, you will know how to:

  • install the prerequisites to use mocha and chai in your application
  • test for HTTP status response codes
  • test for a string of text on a page
  • test for a json response and validate the properties of the object
  • write tests that not only verify the response of your application, but the behavior as well
Please take a moment to tell your friends:

You must be a PRO Member to view code