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

This commit is contained in:
Maurice
2026-10-01 10:38:29 +02:00
parent ba0cc331c1
commit 94447fa011
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -143,6 +143,7 @@ const STATS = {
totalDistanceKm: 1234,
}),
lastTrip: () => null,
nextTrip: () => null,
};
describe('Public API v1 e2e (real guard + real SQL)', () => {
@@ -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(),
);