The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
test(trips): the removal names who removed
Maurice1487ad97f158
diff --git a/server/tests/unit/nest/trip-members.controller.test.ts b/server/tests/unit/nest/trip-members.controller.test.tsindex a42a15f8f..ff3afb865 100644--- a/server/tests/unit/nest/trip-members.controller.test.ts+++ b/server/tests/unit/nest/trip-members.controller.test.ts@@ -174,7 +174,7 @@ describe('TripMembersController', () => {expect(await tc(s).removeMember(user, '9', '1', 'sock')).toEqual({ success: true });// The parsed trip id, as the removal itself takes it; member:removed goes out from the use case.expect(writes.removeMember).toHaveBeenCalledWith(9, 1, restWriter('sock'));- expect(removeMember).toHaveBeenCalledWith(9, 1);+ expect(removeMember).toHaveBeenCalledWith(9, 1, 1);expect(await thrown(() => tc(s).removeMember(user, '9', '2'))).toEqual({status: 403,body: { error: 'No permission to remove members' },diff --git a/server/tests/unit/trips/trips.rpc.test.ts b/server/tests/unit/trips/trips.rpc.test.tsindex c0075df13..5084498b8 100644--- a/server/tests/unit/trips/trips.rpc.test.ts+++ b/server/tests/unit/trips/trips.rpc.test.ts@@ -371,7 +371,7 @@ describe('TripsRpc membership', () => {it('TRIPS-RPC-017 a non-owner member is removed', async () => {const f = build();expect((await f.host().dispatch(req('trips.removeMember', { tripId: 1, userId: 7 }), 42)).ok).toBe(true);- expect(f.roster.removeMember).toHaveBeenCalledWith(1, 7);+ expect(f.roster.removeMember).toHaveBeenCalledWith(1, 7, 42);expect(f.realtime.broadcast).toHaveBeenCalledWith(1, 'member:removed', { userId: 7 });});