fix(workspaces): better logic in workspace project pagination test (#2570)

This commit is contained in:
Chuck Driesler
2024-08-03 08:50:04 +01:00
committed by GitHub
parent 4f6bfb24f6
commit 0212f865fa
@@ -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)
})