From 192bdbb43a35336bb4c27624183f1c534226fe63 Mon Sep 17 00:00:00 2001 From: alibw <69758323+alibw@users.noreply.github.com> Date: Sun, 3 Sep 2023 16:36:09 +0330 Subject: [PATCH] Update Pagination.http Fixed --- Pagination.http | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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