Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. // Load the JSON Schema
  2. const customerSchema = JSON.parse(environment.customerSchema);
  3.  
  4. // Test whether the response matches the schema
  5. var customer = JSON.parse(responseBody);
  6. tests["Customer is valid"] = tv4.validate(customer, customerSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement