Skip to content

Commit 0c22c98

Browse files
committed
lint
1 parent e1c5659 commit 0c22c98

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

src/room/InCallView.test.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
55
Please see LICENSE in the repository root for full details.
66
*/
77

8-
import { beforeEach, expect, it, type MockedFunction, test, vi } from "vitest";
9-
import { act, render, RenderResult } from "@testing-library/react";
8+
import {
9+
beforeEach,
10+
describe,
11+
expect,
12+
it,
13+
type MockedFunction,
14+
vi,
15+
} from "vitest";
16+
import { act, render, type RenderResult } from "@testing-library/react";
1017
import { type MatrixClient, JoinRule, type RoomState } from "matrix-js-sdk";
1118
import { type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc";
1219
import { type RelationsContainer } from "matrix-js-sdk/lib/models/relations-container";
@@ -38,7 +45,6 @@ import { alice, local } from "../utils/test-fixtures";
3845
import { useExperimentalToDeviceTransportSetting } from "../settings/settings";
3946
import { ReactionsSenderProvider } from "../reactions/useReactionsSender";
4047
import { useRoomEncryptionSystem } from "../e2ee/sharedKeyManagement";
41-
import { describe } from "node:test";
4248

4349
// vi.hoisted(() => {
4450
// localStorage = {} as unknown as Storage;
@@ -182,14 +188,14 @@ function createInCallView(): RenderResult & {
182188
};
183189
}
184190

185-
void describe("InCallView", async () => {
186-
await describe("rendering", () => {
191+
describe("InCallView", () => {
192+
describe("rendering", () => {
187193
it("renders", () => {
188194
const { container } = createInCallView();
189195
expect(container).toMatchSnapshot();
190196
});
191197
});
192-
await describe("toDevice label", () => {
198+
describe("toDevice label", () => {
193199
it("is shown if setting activated and room encrypted", () => {
194200
useRoomEncryptionSystemMock.mockReturnValue({
195201
kind: E2eeType.PER_PARTICIPANT,

src/room/__snapshots__/InCallView.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`renders 1`] = `
3+
exports[`InCallView > rendering > renders 1`] = `
44
<div>
55
<div
66
class="inRoom"

src/utils/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ import {
2929
type Room as LivekitRoom,
3030
} from "livekit-client";
3131
import { randomUUID } from "crypto";
32+
import {
33+
type RoomAndToDeviceEvents,
34+
type RoomAndToDeviceEventsHandlerMap,
35+
} from "matrix-js-sdk/lib/matrixrtc/RoomAndToDeviceKeyTransport";
3236

3337
import {
3438
LocalUserMediaViewModel,
@@ -40,10 +44,6 @@ import {
4044
type ResolvedConfigOptions,
4145
} from "../config/ConfigOptions";
4246
import { Config } from "../config/Config";
43-
import {
44-
RoomAndToDeviceEvents,
45-
RoomAndToDeviceEventsHandlerMap,
46-
} from "matrix-js-sdk/lib/matrixrtc/RoomAndToDeviceKeyTransport";
4747

4848
export function withFakeTimers(continuation: () => void): void {
4949
vi.useFakeTimers();

0 commit comments

Comments
 (0)