DEV Community

Adizbek Ergashev
Adizbek Ergashev

Posted on

Testing API's JSON response with chai

Sometimes we need to validate our API's response if it correctly returning JSON structure.

We may unintended add some secret fields to JSON response such as passwords, tokens.

To be aware of this we should test the JSON response if does it matches our need.

I've wrote chai plugin which helps to test JSON structures with ease.


Please rate my work and leave comments below about plugin

Discussion (0)