forked from zhouruizhe/gmTouringMiniApp
Add check-in feature and update travel planner UI
This commit is contained in:
@@ -18,6 +18,15 @@ describe('map session store', () => {
|
||||
expect(store.viewport).toEqual({ longitude: 113.94, latitude: 22.76, scale: 13 })
|
||||
})
|
||||
|
||||
it('shows and clears the planned-route overlay explicitly', () => {
|
||||
const store = useMapStore()
|
||||
expect(store.plannedRouteVisible).toBe(false)
|
||||
store.showPlannedRoute()
|
||||
expect(store.plannedRouteVisible).toBe(true)
|
||||
store.hidePlannedRoute()
|
||||
expect(store.plannedRouteVisible).toBe(false)
|
||||
})
|
||||
|
||||
it('ignores invalid viewport updates', () => {
|
||||
const store = useMapStore()
|
||||
store.updateViewport({ longitude: Number.NaN, latitude: 22.76, scale: 13 })
|
||||
|
||||
Reference in New Issue
Block a user