Extract requestMediaPermissions (#9568)

This commit is contained in:
Michael Weimann 2022-11-11 10:38:51 +01:00 committed by GitHub
parent f2f00f68ba
commit fca6ff271c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 196 additions and 53 deletions

View file

@ -43,9 +43,6 @@ describe("RoomTile", () => {
jest.spyOn(PlatformPeg, "get")
.mockReturnValue({ overrideBrowserShortcuts: () => false } as unknown as BasePlatform);
useMockedCalls();
Object.defineProperty(navigator, "mediaDevices", {
value: { enumerateDevices: async () => [] },
});
let client: Mocked<MatrixClient>;