Implement direct sign-up to an event with registration derived from meeting point memberships

This commit is contained in:
Sylvain Duchesne
2026-11-06 23:16:29 +01:00
parent af0cba6920
commit 5540d361c7
13 changed files with 385 additions and 147 deletions
@@ -955,6 +955,17 @@ describe('registration — a direct sign-up: a Join naming an event itself', ()
}
});
test('a declarer signing up to, then leaving, their own event is not notified', async () => {
const j = join(PLAIN, T0, ALICE);
const l = leave(PLAIN, T1, ALICE);
const w = plainWorld([j, l]);
await emitJoin(w, j);
await emitLeave(w, l);
expect(attendees(w, PLAIN)).toEqual([]);
expect(ledgerOf(w, PLAIN, ALICE).change).toBe('leave');
expect(w.state.notifications).toEqual([]);
});
test('the same person carries a different URN on another event (R7e)', async () => {
const OTHER = `${ALICE}/data/events/other`;
const a = join(PLAIN, T0, BOB, 1);