This Lesson is for PRO Members

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

Unlock This Lesson

Already subscribed? Sign In

Autoplay
Hide playlist

    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