From e82c08ea3ef795231b21478aaf7471e33d8ec8f2 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 25 Aug 2023 15:28:29 +0100 Subject: [PATCH] Fix row tests --- packages/server/src/api/routes/tests/row.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/server/src/api/routes/tests/row.spec.ts b/packages/server/src/api/routes/tests/row.spec.ts index a9675e4a66..f28b96b9d8 100644 --- a/packages/server/src/api/routes/tests/row.spec.ts +++ b/packages/server/src/api/routes/tests/row.spec.ts @@ -1187,6 +1187,7 @@ describe("/rows", () => { sort: sortParams.field, sortOrder: sortParams.order, sortType: sortParams.type, + query: {}, } ) @@ -1247,6 +1248,7 @@ describe("/rows", () => { const createViewResponse = await config.api.viewV2.create() const response = await config.api.viewV2.search(createViewResponse.id, { limit, + query: {}, }) expect(response.body.rows).toHaveLength(limit) @@ -1269,6 +1271,7 @@ describe("/rows", () => { { paginate: true, limit: 4, + query: {}, } ) expect(firstPageResponse.body).toEqual({ @@ -1284,6 +1287,8 @@ describe("/rows", () => { paginate: true, limit: 4, bookmark: firstPageResponse.body.bookmark, + + query: {}, } ) expect(secondPageResponse.body).toEqual({ @@ -1299,6 +1304,7 @@ describe("/rows", () => { paginate: true, limit: 4, bookmark: secondPageResponse.body.bookmark, + query: {}, } ) expect(lastPageResponse.body).toEqual({