Go ProSign in

This Lesson is for 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

    Test Node RESTful API with Mocha and Chai

    Will ButtonWill Button
    12:05

    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

    You must be a Member to view code