chai-json-schema is getting always pass even changed the schema body

Viewed 21

I am using chai-json-schema to validate the response body of an API with the JSON schema object that is saved as a JSON file. The case is that even if I changed the schema keys and data types, the test passed. I can't understand where the issue is. Did you ever face this, please?

Ref https://www.chaijs.com/plugins/chai-json-schema/

I did save the JSON file in the texture folder and used it when the JSON schema validating.

0 Answers
Related