File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -207,16 +207,16 @@ Use pre-initialized joi instance by passing function callback:
207
207
208
208
I .seeResponseMatchesJsonSchema (joi => {
209
209
return joi .object ({
210
- name: joi .string ();
211
- id: joi .number ();
210
+ name: joi .string (),
211
+ id: joi .number ()
212
212
})
213
213
});
214
214
215
215
// or pass a valid schema
216
- const joi = require (' joi);
216
+ const joi = require (' joi' );
217
217
218
218
I .seeResponseMatchesJsonSchema (joi .object ({
219
- name: joi.string();
219
+ name: joi .string (),
220
220
id: joi .number ();
221
221
});
222
222
` ` `
Original file line number Diff line number Diff line change @@ -300,16 +300,16 @@ class JSONResponse extends Helper {
300
300
*
301
301
* I.seeResponseMatchesJsonSchema(joi => {
302
302
* return joi.object({
303
- * name: joi.string();
304
- * id: joi.number();
303
+ * name: joi.string(),
304
+ * id: joi.number()
305
305
* })
306
306
* });
307
307
*
308
308
* // or pass a valid schema
309
- * const joi = require('joi);
309
+ * const joi = require('joi' );
310
310
*
311
311
* I.seeResponseMatchesJsonSchema(joi.object({
312
- * name: joi.string();
312
+ * name: joi.string(),
313
313
* id: joi.number();
314
314
* });
315
315
* ```
You can’t perform that action at this time.
0 commit comments