estate tests: an unfiled room leaves its inviter's list empty, not the map
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9b66b2b250
commit
a4da78edc5
1 changed files with 2 additions and 2 deletions
|
|
@ -187,7 +187,7 @@ describe('activateEstateRoom refusal bounds', () => {
|
||||||
const result = await activateEstateRoom(c.mx, tap('!dm1:test'));
|
const result = await activateEstateRoom(c.mx, tap('!dm1:test'));
|
||||||
expect(result.kind).toBe('refused');
|
expect(result.kind).toBe('refused');
|
||||||
expect((result as { message: string }).message).not.toMatch(/tap again to retry/);
|
expect((result as { message: string }).message).not.toMatch(/tap again to retry/);
|
||||||
expect(c.current()).toEqual({});
|
expect(c.current()).toEqual({ '@friend:test': [] });
|
||||||
});
|
});
|
||||||
|
|
||||||
it.each([399, 500])('keeps the room listed on a %i that carries an errcode', async (status) => {
|
it.each([399, 500])('keeps the room listed on a %i that carries an errcode', async (status) => {
|
||||||
|
|
@ -248,7 +248,7 @@ describe('joinEstateRoomOrThrow, the lobby, tombstone and predecessor buttons',
|
||||||
it('throws the refusal and unfiles the room', async () => {
|
it('throws the refusal and unfiles the room', async () => {
|
||||||
const c = dmClient({ refuse: true, invites: { '!dm1:test': '@friend:test' } });
|
const c = dmClient({ refuse: true, invites: { '!dm1:test': '@friend:test' } });
|
||||||
await expect(joinEstateRoomOrThrow(c.mx, '!dm1:test')).rejects.toThrow('M_FORBIDDEN');
|
await expect(joinEstateRoomOrThrow(c.mx, '!dm1:test')).rejects.toThrow('M_FORBIDDEN');
|
||||||
expect(c.current()).toEqual({});
|
expect(c.current()).toEqual({ '@friend:test': [] });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue