@@ -5,8 +5,15 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
5
5
Please see LICENSE in the repository root for full details.
6
6
*/
7
7
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" ;
10
17
import { type MatrixClient , JoinRule , type RoomState } from "matrix-js-sdk" ;
11
18
import { type MatrixRTCSession } from "matrix-js-sdk/lib/matrixrtc" ;
12
19
import { type RelationsContainer } from "matrix-js-sdk/lib/models/relations-container" ;
@@ -38,7 +45,6 @@ import { alice, local } from "../utils/test-fixtures";
38
45
import { useExperimentalToDeviceTransportSetting } from "../settings/settings" ;
39
46
import { ReactionsSenderProvider } from "../reactions/useReactionsSender" ;
40
47
import { useRoomEncryptionSystem } from "../e2ee/sharedKeyManagement" ;
41
- import { describe } from "node:test" ;
42
48
43
49
// vi.hoisted(() => {
44
50
// localStorage = {} as unknown as Storage;
@@ -182,14 +188,14 @@ function createInCallView(): RenderResult & {
182
188
} ;
183
189
}
184
190
185
- void describe ( "InCallView" , async ( ) => {
186
- await describe ( "rendering" , ( ) => {
191
+ describe ( "InCallView" , ( ) => {
192
+ describe ( "rendering" , ( ) => {
187
193
it ( "renders" , ( ) => {
188
194
const { container } = createInCallView ( ) ;
189
195
expect ( container ) . toMatchSnapshot ( ) ;
190
196
} ) ;
191
197
} ) ;
192
- await describe ( "toDevice label" , ( ) => {
198
+ describe ( "toDevice label" , ( ) => {
193
199
it ( "is shown if setting activated and room encrypted" , ( ) => {
194
200
useRoomEncryptionSystemMock . mockReturnValue ( {
195
201
kind : E2eeType . PER_PARTICIPANT ,
0 commit comments