From 0212f865fad708aa8441dbb2f4692047d4f1e8a7 Mon Sep 17 00:00:00 2001 From: Chuck Driesler Date: Sat, 3 Aug 2024 08:50:04 +0100 Subject: [PATCH] fix(workspaces): better logic in workspace project pagination test (#2570) --- .../workspaces/tests/integration/projects.graph.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/modules/workspaces/tests/integration/projects.graph.spec.ts b/packages/server/modules/workspaces/tests/integration/projects.graph.spec.ts index b27650b6f..33231c699 100644 --- a/packages/server/modules/workspaces/tests/integration/projects.graph.spec.ts +++ b/packages/server/modules/workspaces/tests/integration/projects.graph.spec.ts @@ -134,12 +134,12 @@ describe('Workspace project GQL CRUD', () => { it('should respect pagination', async () => { const resA = await apollo.execute(GetWorkspaceProjectsDocument, { id: workspace.id, - limit: 1 + limit: 10 }) const resB = await apollo.execute(GetWorkspaceProjectsDocument, { id: workspace.id, - limit: 1, + limit: 10, cursor: resA.data?.workspace.projects.cursor }) @@ -149,7 +149,7 @@ describe('Workspace project GQL CRUD', () => { expect(resA).to.not.haveGraphQLErrors() expect(resB).to.not.haveGraphQLErrors() expect(projectA).to.exist - expect(projectB).to.exist + expect(projectB).to.not.exist expect(projectA?.name).to.not.equal(projectB?.name) })