You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expects HTTP response to return a JSON collection with a single element.
269
269
270
-
### utils.expect.response.text
270
+
### `utils.expect.response.text`
271
271
Expects HTTP response to return a simple (not the JSON) data type, such as string.
272
272
273
273
#### Prototype
@@ -281,7 +281,7 @@ Check if the HTTP response data can be initialized as text.
281
281
utils.expect.response.text(pm);
282
282
```
283
283
284
-
### utils.expect.response.json
284
+
### `utils.expect.response.json`
285
285
Expects HTTP response to return any JSON object. It can be a single element, a collection, an empty collection, basically, anything that comes in a JSON format.
286
286
287
287
#### Prototype
@@ -295,7 +295,7 @@ Check if the HTTP response data contains a JSON object.
295
295
utils.expect.response.json(pm);
296
296
```
297
297
298
-
### utils.expect.response.one
298
+
### `utils.expect.response.one`
299
299
Expects HTTP response to return a single JSON element (not a collection and not a collection with a single item).
300
300
301
301
#### Prototype
@@ -309,7 +309,7 @@ Check if the HTTP response data contains a single JSON element.
309
309
utils.expect.response.one(pm);
310
310
```
311
311
312
-
### utils.expect.response.many
312
+
### `utils.expect.response.many`
313
313
Expects HTTP response to return a JSON collection (can be empty or contain the specified minimum and/or maximum number of items). The `utils.expect.response.many` function can be called via one of these shortcuts:
314
314
315
315
*[`utils.expect.response.empty`](#utilsexpectresponseempty) to check for an empty collection
@@ -333,7 +333,7 @@ Check if the HTTP response data contains a JSON collection with at least 2 and a
333
333
utils.expect.response.many(pm, 2, 10);
334
334
```
335
335
336
-
### utils.expect.response.empty
336
+
### `utils.expect.response.empty`
337
337
Expects HTTP response to return an empty JSON collection (but not `null`).
338
338
339
339
#### Prototype
@@ -347,7 +347,7 @@ Check if the HTTP response data contains an empty JSON collection (but not `null
347
347
utils.expect.response.empty(pm);
348
348
```
349
349
350
-
### utils.expect.response.nonempty
350
+
### `utils.expect.response.nonempty`
351
351
Expects HTTP response to return a non-empty JSON collection (one or more items).
352
352
353
353
#### Prototype
@@ -361,7 +361,7 @@ Check if the HTTP response data contains a JSON collection with at least one ite
361
361
utils.expect.response.nonempty(pm);
362
362
```
363
363
364
-
### utils.expect.response.unique
364
+
### `utils.expect.response.unique`
365
365
Expects HTTP response to return a JSON collection with a single element (but not a single element matching the condition of the utils.expect.response.one function).
0 commit comments