Implement direct sign-up to an event with registration derived from meeting point memberships
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user