@@ -130,51 +130,6 @@ describe('plugin-routing', () => {
130130          clickHandler ( {  coordinate : [ 20 ,  60 ]  } ) 
131131          expect ( actionContext . commit ) . toHaveBeenCalledWith ( 'setEnd' ,  [ 20 ,  60 ] ) 
132132        } ) 
133-         /* 
134-         it('should not set end point if it matches start point', () => { 
135-           let clickHandler 
136-           actionContext.rootGetters.map.on = jest.fn((event, handler) => { 
137-             if (event === 'click') clickHandler = handler 
138-           }) 
139- 
140-           // @ts -ignore 
141-           initializeTool(actionContext) 
142- 
143-           if (!clickHandler) throw new Error('Click handler was not set') 
144- 
145-           console.error('Initial state:', actionContext.state) 
146-           console.error( 
147-             'Map event listeners:', 
148-             actionContext.rootGetters.map.on.mock.calls 
149-           ) 
150-           console.error('Commits before click:', actionContext.commit.mock.calls) 
151- 
152-           // Simulate first click (start point) 
153-           clickHandler({ coordinate: [10, 50] }) 
154- 
155-           console.error("Commits after first click:", actionContext.commit.mock.calls); 
156-           console.error("State after first click:", actionContext.state); 
157- 
158-           expect(actionContext.commit).toHaveBeenCalledWith( 
159-             expect.stringMatching(/setStart/), 
160-             expect.arrayContaining([10, 50]) 
161-           )  
162- 
163-           // Simulate a second click on the same coordinate 
164-           clickHandler({ coordinate: [10, 50] }) 
165-           expect(actionContext.commit).not.toHaveBeenCalledWith( 
166-             'setEnd', 
167-             [10, 50] 
168-           ) 
169-           const calls = actionContext.commit.mock.calls.map((call) => call[0]) 
170-           expect(calls).toEqual([ 
171-             'setSelectableTravelModes', 
172-             'setSelectablePreferences', 
173-             'setDisplayPreferences', 
174-             'setDisplayRouteTypesToAvoid', 
175-             'setStart', 
176-           ]) 
177-         }) */ 
178133      } ) 
179134      describe ( 'resetCoordinates' ,  ( )  =>  { 
180135        const  routingStore  =  makeStoreModule ( ) 
0 commit comments