Skip to content

armgit / TREK

Public Imported from GitHub
0

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.

test(public-api): the other stats suites stub next_trip too

Maurice94447fa01149
diff --git a/server/tests/e2e/public-api.e2e.test.ts b/server/tests/e2e/public-api.e2e.test.ts
index da99c184f..5eb4ab4c0 100644
--- a/server/tests/e2e/public-api.e2e.test.ts
+++ b/server/tests/e2e/public-api.e2e.test.ts
@@ -143,6 +143,7 @@ const STATS = {
totalDistanceKm: 1234,
}),
lastTrip: () => null,
+ nextTrip: () => null,
};
describe('Public API v1 e2e (real guard + real SQL)', () => {
diff --git a/server/tests/unit/nest/public-api-scopes.test.ts b/server/tests/unit/nest/public-api-scopes.test.ts
index 8074c3dee..b3f002402 100644
--- a/server/tests/unit/nest/public-api-scopes.test.ts
+++ b/server/tests/unit/nest/public-api-scopes.test.ts
@@ -143,6 +143,7 @@ function statsController() {
totalTrips: 1, totalDays: 2, totalPlaces: 3, totalDistanceKm: 4,
})),
lastTrip: vi.fn(() => null),
+ nextTrip: vi.fn(() => null),
} as unknown as AtlasService,
new RateLimitService(),
);