From 8eaac16c89728b6193c27de1477baf0b11871c65 Mon Sep 17 00:00:00 2001 From: vinit717 Date: Sat, 18 Jan 2025 13:27:55 +0530 Subject: [PATCH] chore: fix failing test by reverting it --- test/unit/models/logs.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/models/logs.test.js b/test/unit/models/logs.test.js index a27edb03c..68b319fea 100644 --- a/test/unit/models/logs.test.js +++ b/test/unit/models/logs.test.js @@ -166,9 +166,9 @@ describe("Logs", function () { it("Should return all the logs as per the next and prev", async function () { const PAGE = 1; const result = await logsQuery.fetchAllLogs({ size: 3, page: PAGE }); - expect(result.allLogs).to.have.lengthOf(4); + expect(result.allLogs).to.have.lengthOf(3); const nextData = await logsQuery.fetchAllLogs({ next: result.next }); - expect(nextData.allLogs).to.have.lengthOf(3); + expect(nextData.allLogs).to.have.lengthOf(4); expect(nextData).to.have.any.key("prev"); expect(nextData).to.have.any.key("next"); // eslint-disable-next-line no-unused-expressions