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