mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 06:56:35 +00:00
test(public-api): the other stats suites stub next_trip too
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user