Skip to content

Commit dca3186

Browse files
sampaiodiegoggazzo
authored andcommitted
test: more use cases
1 parent 0b1baf9 commit dca3186

File tree

1 file changed

+12
-0
lines changed
  • ee/packages/federation-matrix/tests/end-to-end

1 file changed

+12
-0
lines changed

ee/packages/federation-matrix/tests/end-to-end/dms.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,18 @@ const waitForRoomEvent = async (room: Room, eventType: RoomEmittedEvents, valida
310310
it.todo('should add a user to the DM');
311311
it.todo('should add another user by another user than the initial inviter');
312312
});
313+
describe('Duplicated rooms', () => {
314+
describe('When the third user leaves a DM', () => {
315+
describe('When there is an existing non-federated DM with the same users', () => {
316+
it.todo('should have two DMs with same users');
317+
it.todo('should return the non-federated room when trying to create a new DM with same users');
318+
});
319+
describe('When there is only federated DMs', () => {
320+
it.todo('should have two DMs with same users');
321+
it.todo('should return the oldest room when trying to create a new DM with same users');
322+
});
323+
});
324+
});
313325
});
314326
});
315327
});

0 commit comments

Comments
 (0)