mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +00:00
test(tours): follow the ski tour changes in the tests
The collection tour fixture no longer writes the dropped winter_activity column, the drafts are saved as version 11, and a hike no longer offers the pistes layer, which belongs to a ski track only.
This commit is contained in:
@@ -116,7 +116,7 @@ describe('useTourPlanner, bike tours (BIK-01)', () => {
|
||||
await settle();
|
||||
act(() => result.current.setBikeProfile('road'));
|
||||
expect(JSON.parse(localStorage.getItem('tour-draft-52') || 'null')).toMatchObject({
|
||||
version: 10,
|
||||
version: 11,
|
||||
tourType: 'bike',
|
||||
bikeProfile: 'road',
|
||||
});
|
||||
|
||||
@@ -1618,7 +1618,7 @@ describe('useTourPlanner', () => {
|
||||
|
||||
expect(result.current.mode).toEqual({ type: 'new-draft' })
|
||||
expect(JSON.parse(localStorage.getItem('tour-draft-23') || 'null')).toMatchObject({
|
||||
version: 10,
|
||||
version: 11,
|
||||
tourType: 'hike',
|
||||
name: '',
|
||||
waypoints: [],
|
||||
|
||||
Reference in New Issue
Block a user