Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Load the JSON Schema
- const customerSchema = JSON.parse(environment.customerSchema);
- // Test whether the response matches the schema
- var customer = JSON.parse(responseBody);
- tests["Customer is valid"] = tv4.validate(customer, customerSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement