From 7923edd7bc1fc78d35db92ad472f563c8aa42426 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Wed, 10 Jan 2024 16:45:34 -0500 Subject: [PATCH] test: fix limit=0 test --- test/collections-rest/int.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/collections-rest/int.spec.ts b/test/collections-rest/int.spec.ts index c975307330..79aab12899 100644 --- a/test/collections-rest/int.spec.ts +++ b/test/collections-rest/int.spec.ts @@ -1223,7 +1223,8 @@ describe('collections-rest', () => { }) expect(status).toEqual(200) - expect(result.totalDocs).toEqual(50) + expect(result.docs).toHaveLength(50) + expect(result.totalPages).toEqual(1) }) })