-
Notifications
You must be signed in to change notification settings - Fork 12
Test APIs
kimschles edited this page Jun 3, 2018
·
1 revision
https://code.tutsplus.com/tutorials/testing-a-nodejs-api--cms-29689
When testing an API, check for the following things:
GET
- Lack of error message (?)
- The response code you are expecting
- The response type you are expecting. For example:
'Content-Type', /json/
- Some stuff testing the shape of the data (object keys, etc.)