Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
remove unnecessary braces
Browse files Browse the repository at this point in the history
Signed-off-by: Timo K <[email protected]>
  • Loading branch information
toger5 committed Nov 10, 2023
1 parent 2fce39c commit d4f5dfb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/models/Call-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -932,20 +932,20 @@ describe("ElementCall", () => {
const addWidgetSpy = jest.spyOn(WidgetStore.instance, "addVirtualWidget");
// If a room is not encrypted we will never add the perParticipantE2EE flag.
client.isRoomEncrypted.mockReturnValue(true);
{
// should create call with perParticipantE2EE flag
ElementCall.create(room);

expect(addWidgetSpy.mock.calls[0][0].url).toContain("perParticipantE2EE=true");
ElementCall.get(room)?.destroy();
// should create call with perParticipantE2EE flag
ElementCall.create(room);

expect(addWidgetSpy.mock.calls[0][0].url).toContain("perParticipantE2EE=true");
ElementCall.get(room)?.destroy();

// should create call without perParticipantE2EE flag
enabledSettings.add("feature_disable_call_per_sender_encryption");
await ElementCall.create(room);
enabledSettings.delete("feature_disable_call_per_sender_encryption");

// should create call without perParticipantE2EE flag
enabledSettings.add("feature_disable_call_per_sender_encryption");
await ElementCall.create(room);
enabledSettings.delete("feature_disable_call_per_sender_encryption");
expect(addWidgetSpy.mock.calls[1][0].url).not.toContain("perParticipantE2EE=true");

expect(addWidgetSpy.mock.calls[1][0].url).not.toContain("perParticipantE2EE=true");
}
client.isRoomEncrypted.mockClear();
addWidgetSpy.mockRestore();
});
Expand Down

0 comments on commit d4f5dfb

Please sign in to comment.