1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-31 15:24:23 +03:00

lint and tests

This commit is contained in:
Timo
2025-04-16 14:37:07 +02:00
parent d445b600f9
commit 44cf0aa93a
4 changed files with 15 additions and 11 deletions

View File

@ -51,9 +51,7 @@ describe("RoomKeyTransport", () => {
room = makeMockRoom([membershipTemplate]);
client = new MatrixClient({ baseUrl: "base_url" });
client.matrixRTC.start();
transport = new RoomKeyTransport(room, client, statistics, {
getChild: jest.fn().mockReturnValue(mockLogger),
} as unknown as Mocked<Logger>);
transport = new RoomKeyTransport(room, client, statistics, mockLogger);
transport.on(KeyTransportEvents.ReceivedKeys, (...p) => {
onCallEncryptionMock(...p);
});