test(crypto-js): Test `InboundGrounSession.sessionId` and `.hasBeenImported`.

This commit is contained in:
Ivan Enderlin 2022-09-22 11:31:28 +02:00
parent 62ab263d0e
commit df50a5446f
1 changed files with 2 additions and 0 deletions

View File

@ -505,6 +505,8 @@ describe(OlmMachine.name, () => {
exportedRoomKeys = await m.exportRoomKeys(session => {
expect(session).toBeInstanceOf(InboundGroupSession);
expect(session.roomId.toString()).toStrictEqual(room.toString());
expect(session.sessionId).toBeDefined();
expect(session.hasBeenImported()).toStrictEqual(false);
return true;
});