From ecb334c3dd58561e7cc90f3f93766728247c0101 Mon Sep 17 00:00:00 2001 From: KobeNguyenT <7845001+kobenguyent@users.noreply.github.com> Date: Sun, 21 May 2023 07:16:02 +0200 Subject: [PATCH] fix(docs): typo (#3618) --- docs/helpers/JSONResponse.md | 8 ++++---- lib/helper/JSONResponse.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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(); * }); * ```