diff --git a/__tests__/call-members.test.ts b/__tests__/call-members.test.ts index aabfdbe..cf6b077 100644 --- a/__tests__/call-members.test.ts +++ b/__tests__/call-members.test.ts @@ -52,6 +52,16 @@ describe("call members API", () => { expect(response.members[2].role).toBe("user"); }); + it("query calls - filter by call members", async () => { + const response = await client.video.queryCalls({ + filter_conditions: { + members: { $in: ["sara"] }, + }, + }); + + expect(response.calls.length).toBeGreaterThanOrEqual(1); + }); + it("block and unblock users", async () => { const response = await call.blockUser({ user_id: "sara" }); diff --git a/__tests__/call.test.ts b/__tests__/call.test.ts index b1979da..7af5791 100644 --- a/__tests__/call.test.ts +++ b/__tests__/call.test.ts @@ -98,6 +98,24 @@ describe("call API", () => { expect(response.calls.length).toBeGreaterThanOrEqual(1); }); + it("query calls - ongoing", async () => { + const response = await client.video.queryCalls({ + filter_conditions: { ongoing: { $eq: true } }, + }); + + // Dummy test + expect(response.calls).toBeDefined(); + }); + + it("query calls - upcoming", async () => { + const response = await client.video.queryCalls({ + filter_conditions: { starts_at: { $gt: new Date().toISOString() } }, + }); + + // Dummy test + expect(response.calls).toBeDefined(); + }); + describe("recording", () => { it("enable call recording", async () => { let response = await call.update({