it('response status code should match one of the schema defined responses',()=>{
// HACK: allow HTTP 418 I am a teapot, for now 👇
assert(context[method].responses.hasOwnProperty('418')||Object.keys(context[method].responses).includes(String(response.statusCode)),`${method.toUpperCase()}${path} sent back unexpected HTTP status code: ${response.statusCode}`);
});
// Recursively iterate through schema properties, comparing type
it('response should match schema definition',()=>{
consthas200=context[method].responses['200'];
if(!has200){
it('response body should match schema definition',()=>{