From 3641ec3439714d8d2413059e97b66de8df5ec609 Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Wed, 8 Nov 2023 13:54:33 +0100 Subject: [PATCH] update query call test --- __tests__/call.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/__tests__/call.test.ts b/__tests__/call.test.ts index 7af5791..e906682 100644 --- a/__tests__/call.test.ts +++ b/__tests__/call.test.ts @@ -108,8 +108,12 @@ describe("call API", () => { }); it("query calls - upcoming", async () => { + const mins30 = 1000 * 60 * 60 * 30; + const inNext30mins = new Date(Date.now() + mins30); const response = await client.video.queryCalls({ - filter_conditions: { starts_at: { $gt: new Date().toISOString() } }, + filter_conditions: { + starts_at: { $gt: inNext30mins.toISOString() }, + }, }); // Dummy test