Skip to content

Commit ecb334c

Browse files
authored
fix(docs): typo (#3618)
1 parent 7de167f commit ecb334c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/helpers/JSONResponse.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,16 +207,16 @@ Use pre-initialized joi instance by passing function callback:
207207

208208
I.seeResponseMatchesJsonSchema(joi => {
209209
return joi.object({
210-
name: joi.string();
211-
id: joi.number();
210+
name: joi.string(),
211+
id: joi.number()
212212
})
213213
});
214214

215215
// or pass a valid schema
216-
const joi = require('joi);
216+
const joi = require('joi');
217217

218218
I.seeResponseMatchesJsonSchema(joi.object({
219-
name: joi.string();
219+
name: joi.string(),
220220
id: joi.number();
221221
});
222222
```

lib/helper/JSONResponse.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,16 @@ class JSONResponse extends Helper {
300300
*
301301
* I.seeResponseMatchesJsonSchema(joi => {
302302
* return joi.object({
303-
* name: joi.string();
304-
* id: joi.number();
303+
* name: joi.string(),
304+
* id: joi.number()
305305
* })
306306
* });
307307
*
308308
* // or pass a valid schema
309-
* const joi = require('joi);
309+
* const joi = require('joi');
310310
*
311311
* I.seeResponseMatchesJsonSchema(joi.object({
312-
* name: joi.string();
312+
* name: joi.string(),
313313
* id: joi.number();
314314
* });
315315
* ```

0 commit comments

Comments
 (0)