mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 16:03:02 +00:00
fix roadtrip regression test fixtures
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user