Added new tests
This commit is contained in:
20
Count.http
20
Count.http
@@ -21,4 +21,22 @@ GET /products
|
||||
test('OK content-range', () => {
|
||||
expect(response.headers['content-range']).to.equal(`0-${itemsCount - 1}/*`);
|
||||
});
|
||||
}}
|
||||
}}
|
||||
|
||||
GET /products?offset=3&limit=8&unit_price=lt.14
|
||||
Prefer: count=exact
|
||||
?? status == 206
|
||||
?? header content-range == 3-10/21
|
||||
|
||||
GET /products?offset=3&limit=25&unit_price=lt.14
|
||||
Prefer: count=exact
|
||||
?? status == 206
|
||||
?? header content-range == 3-20/21
|
||||
|
||||
GET /products?offset=98&unit_price=lt.14
|
||||
Prefer: count=exact
|
||||
?? header content-range == */21
|
||||
|
||||
GET /products?limit=0&unit_price=lt.14
|
||||
Prefer: count=exact
|
||||
?? header content-range == */21
|
||||
|
||||
Reference in New Issue
Block a user