mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-19 06:20:25 +00:00
lint
This commit is contained in:
@@ -8,11 +8,9 @@ Please see LICENSE in the repository root for full details.
|
||||
import {
|
||||
type FC,
|
||||
createContext,
|
||||
useCallback,
|
||||
useContext,
|
||||
useEffect,
|
||||
useMemo,
|
||||
useRef,
|
||||
useState,
|
||||
type JSX,
|
||||
} from "react";
|
||||
@@ -186,7 +184,7 @@ function useMediaDeviceHandle(
|
||||
]);
|
||||
const availablePrint = Array.from(available.entries()).map(
|
||||
([id, label]) =>
|
||||
`id:${id === "" ? '""' : id} label:${(label as any).name}\n`,
|
||||
`id:${id === "" ? '""' : id} label:${(label as { name?: string }).name}\n`,
|
||||
);
|
||||
logger.info(
|
||||
`Media devices changed.\nkind ${kind}\n(deviceObserver$ updated): ${availablePrint}`,
|
||||
|
||||
@@ -106,8 +106,6 @@ function mockMediaDevices(
|
||||
videoInput: mockDevices(
|
||||
camera ? new Map([[mockCamera.deviceId, mockCamera]]) : new Map(),
|
||||
),
|
||||
startUsingDeviceNames: (): void => {},
|
||||
stopUsingDeviceNames: (): void => {},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -126,8 +126,6 @@ test("will use the correct device", () => {
|
||||
useAsEarpiece: false,
|
||||
},
|
||||
videoInput: deviceStub,
|
||||
startUsingDeviceNames: () => {},
|
||||
stopUsingDeviceNames: () => {},
|
||||
}}
|
||||
>
|
||||
<TestComponentWrapper />
|
||||
@@ -161,8 +159,6 @@ test("will use the pan if earpiece is selected", async () => {
|
||||
useAsEarpiece: true,
|
||||
},
|
||||
videoInput: deviceStub,
|
||||
startUsingDeviceNames: () => {},
|
||||
stopUsingDeviceNames: () => {},
|
||||
}}
|
||||
>
|
||||
<TestComponentWrapper />
|
||||
|
||||
Reference in New Issue
Block a user