From 2cfa64c2a3466d5e7e0d32bd0e3e7f3d206b18a0 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Thu, 26 Oct 2023 15:31:08 +0000 Subject: [PATCH] test(queries/get-executions): use createdAt in filter test cases --- packages/backend/src/graphql/queries/get-executions.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/graphql/queries/get-executions.test.ts b/packages/backend/src/graphql/queries/get-executions.test.ts index 5705f1a8..32758cbd 100644 --- a/packages/backend/src/graphql/queries/get-executions.test.ts +++ b/packages/backend/src/graphql/queries/get-executions.test.ts @@ -435,17 +435,17 @@ describe('graphQL getExecutions query', () => { }); it('should return only executions data within date range', async () => { - const updatedAtFrom = (executionOne.updatedAt as Date) + const createdAtFrom = (executionOne.createdAt as Date) .getTime() .toString(); - const updatedAtTo = (executionOne.updatedAt as Date) + const createdAtTo = (executionOne.createdAt as Date) .getTime() .toString(); const query = ` query { - getExecutions(limit: 10, offset: 0, filters: { updatedAt: { from: "${updatedAtFrom}", to: "${updatedAtTo}" }}) { + getExecutions(limit: 10, offset: 0, filters: { createdAt: { from: "${createdAtFrom}", to: "${createdAtTo}" }}) { pageInfo { currentPage totalPages