Skip to content

Commit

Permalink
fix(docs): typo (#3618)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed May 21, 2023
1 parent 7de167f commit ecb334c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/helpers/JSONResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
```
Expand Down
8 changes: 4 additions & 4 deletions lib/helper/JSONResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
* });
* ```
Expand Down

0 comments on commit ecb334c

Please sign in to comment.