@@ -14,15 +14,16 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
+ import { type Mocked } from "jest-mock" ;
18
+
17
19
import { makeMockEvent , membershipTemplate , mockCallMembership } from "./mocks" ;
18
- import { ClientEvent , EventType , MatrixClient } from "../../../src" ;
20
+ import { ClientEvent , EventType , type MatrixClient } from "../../../src" ;
19
21
import { ToDeviceKeyTransport } from "../../../src/matrixrtc/ToDeviceKeyTransport.ts" ;
20
- import { Mocked } from "jest-mock" ;
21
22
import { getMockClientWithEventEmitter } from "../../test-utils/client.ts" ;
22
- import { Statistics } from "../../../src/matrixrtc" ;
23
+ import { type Statistics } from "../../../src/matrixrtc" ;
23
24
import { KeyTransportEvents } from "../../../src/matrixrtc/IKeyTransport.ts" ;
24
25
import { defer } from "../../../src/utils.ts" ;
25
- import { Logger } from "../../../src/logger.ts" ;
26
+ import { type Logger } from "../../../src/logger.ts" ;
26
27
27
28
describe ( "ToDeviceKeyTransport" , ( ) => {
28
29
const roomId = "!room:id" ;
@@ -166,7 +167,7 @@ describe("ToDeviceKeyTransport", () => {
166
167
expect ( mockClient . encryptAndSendToDevice ) . toHaveBeenCalledTimes ( 0 ) ;
167
168
} ) ;
168
169
169
- it ( "should warn when there is a room mismatch" , async ( ) => {
170
+ it ( "should warn when there is a room mismatch" , ( ) => {
170
171
setup ( ) ;
171
172
172
173
transport . start ( ) ;
@@ -241,7 +242,7 @@ describe("ToDeviceKeyTransport", () => {
241
242
} ,
242
243
] ;
243
244
244
- test . each ( MALFORMED_EVENT ) ( "should warn on malformed event %j" , async ( event ) => {
245
+ test . each ( MALFORMED_EVENT ) ( "should warn on malformed event %j" , ( event ) => {
245
246
setup ( ) ;
246
247
247
248
transport . start ( ) ;
0 commit comments