test(queries/get-executions): use createdAt in filter test cases
This commit is contained in:
@@ -435,17 +435,17 @@ describe('graphQL getExecutions query', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should return only executions data within date range', async () => {
|
it('should return only executions data within date range', async () => {
|
||||||
const updatedAtFrom = (executionOne.updatedAt as Date)
|
const createdAtFrom = (executionOne.createdAt as Date)
|
||||||
.getTime()
|
.getTime()
|
||||||
.toString();
|
.toString();
|
||||||
|
|
||||||
const updatedAtTo = (executionOne.updatedAt as Date)
|
const createdAtTo = (executionOne.createdAt as Date)
|
||||||
.getTime()
|
.getTime()
|
||||||
.toString();
|
.toString();
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
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 {
|
pageInfo {
|
||||||
currentPage
|
currentPage
|
||||||
totalPages
|
totalPages
|
||||||
|
Reference in New Issue
Block a user