diff --git a/docs/helpers/JSONResponse.md b/docs/helpers/JSONResponse.md index 5e2defb68..1126ce146 100644 --- a/docs/helpers/JSONResponse.md +++ b/docs/helpers/JSONResponse.md @@ -207,16 +207,16 @@ Use pre-initialized joi instance by passing function callback: I.seeResponseMatchesJsonSchema(joi => { return joi.object({ - name: joi.string(); - id: joi.number(); + name: joi.string(), + id: joi.number() }) }); // or pass a valid schema -const joi = require('joi); +const joi = require('joi'); I.seeResponseMatchesJsonSchema(joi.object({ - name: joi.string(); + name: joi.string(), id: joi.number(); }); ``` diff --git a/lib/helper/JSONResponse.js b/lib/helper/JSONResponse.js index 5a433a044..7a10606bc 100644 --- a/lib/helper/JSONResponse.js +++ b/lib/helper/JSONResponse.js @@ -300,16 +300,16 @@ class JSONResponse extends Helper { * * I.seeResponseMatchesJsonSchema(joi => { * return joi.object({ - * name: joi.string(); - * id: joi.number(); + * name: joi.string(), + * id: joi.number() * }) * }); * * // or pass a valid schema - * const joi = require('joi); + * const joi = require('joi'); * * I.seeResponseMatchesJsonSchema(joi.object({ - * name: joi.string(); + * name: joi.string(), * id: joi.number(); * }); * ```