Skip to content

Commit 7673fa3

Browse files
committed
test: reeanble fixed tests
1 parent 73b7686 commit 7673fa3

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

__tests__/call-members.test.ts

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,26 @@ describe('call members API', () => {
7474
expect(unblockResponse).toBeDefined();
7575
});
7676

77-
// backend issue
78-
// it("mute one or many users", async () => {
79-
// const muteAllResponse = await call.muteUsers({
80-
// mute_all_users: true,
81-
// audio: true,
82-
// });
83-
84-
// expect(muteAllResponse).toBeDefined();
85-
86-
// const muteUserResponse = await call.muteUsers({
87-
// user_ids: ["sara"],
88-
// audio: true,
89-
// video: true,
90-
// screenshare: true,
91-
// screenshare_audio: true,
92-
// });
93-
94-
// expect(muteUserResponse).toBeDefined();
95-
// });
77+
it('mute one or many users', async () => {
78+
const muteAllResponse = await call.muteUsers({
79+
mute_all_users: true,
80+
audio: true,
81+
muted_by_id: 'john',
82+
});
83+
84+
expect(muteAllResponse).toBeDefined();
85+
86+
const muteUserResponse = await call.muteUsers({
87+
user_ids: ['sara'],
88+
audio: true,
89+
video: true,
90+
screenshare: true,
91+
screenshare_audio: true,
92+
muted_by_id: 'john',
93+
});
94+
95+
expect(muteUserResponse).toBeDefined();
96+
});
9697

9798
it('grant and revoke permissions', async () => {
9899
const revokeResponse = await call.updateUserPermissions({

__tests__/teams.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,11 @@ describe('teams', () => {
9494

9595
expect(response.calls.length).toBeGreaterThan(0);
9696

97-
// TODO: backend issue
98-
// response = await client.video.queryCalls({
99-
// filter_conditions: {
100-
// team: null,
101-
// },
102-
// });
97+
response = await client.video.queryCalls({
98+
filter_conditions: {
99+
team: null,
100+
},
101+
});
103102

104103
response = await client.video.queryCalls({
105104
filter_conditions: {

0 commit comments

Comments
 (0)