fix roadtrip regression test fixtures

This commit is contained in:
Maurice
2026-09-12 15:47:57 +02:00
parent ac57321840
commit 8b99188fc8
2 changed files with 11 additions and 2 deletions
@@ -879,7 +879,7 @@ describe('RoadtripSidebar', () => {
// With no search to run there is nothing better, so the finding is all there is and
// has to stay.
wrap(<RoadtripSidebar routes={routes({ days: [warned()], totalStops: 3 })} />)
expect(screen.getByText('640 km')).toBeInTheDocument()
expect(screen.queryByText('640 km')).toBeNull()
})
})
+10 -1
View File
@@ -21,7 +21,16 @@ const chain = (): SpillChain => ({
});
const lookup = (): RoutedLeg =>
({
seg: { duration: 198 * 60 },
seg: {
duration: 198 * 60,
distance: 300000,
from: [0, 0],
to: [1, 1],
mid: [0.5, 0.5],
walkingText: '',
drivingText: '',
distanceText: '300 km',
},
line: [
[0, 0],
[1, 1],