diff --git a/Pagination.http b/Pagination.http index 4efec9d..7a34fff 100644 --- a/Pagination.http +++ b/Pagination.http @@ -9,13 +9,13 @@ GET {{baseUrl}}/products?limit=20 }); }} -GET {{baseUrl}}/products?limit=20&offset=20 +GET {{baseUrl}}/products?limit=40&offset=7 ?? status == 200 {{ const { equal } = require('assert'); let responseItems = JSON. parse(response.body); let itemsCount = responseItems.length; test('OK content-range', () => { - equal(response.headers['content-range'], `${itemsCount}-${itemsCount - 1 + 20}/*`); + equal(response.headers['content-range'], '7-46/*'); }); }} \ No newline at end of file