@@ -203,12 +203,12 @@ describe("Test URL fragment utilities", () => {
203203
204204 test ( "Test parseUrlFragments parses multiple fragments and decodes values" , ( ) => {
205205 window . location . hash =
206- "#id=geoMap&nodeId=abc%3A123;id=indoorMap&nodeId=indoor-node " ;
206+ "#id=geoMap&nodeId=abc%3A123;id=indoorMap&nodeId=indoorNode " ;
207207 const fragments = utils . parseUrlFragments ( ) ;
208208
209209 expect ( Object . keys ( fragments ) . sort ( ) ) . toEqual ( [ "geoMap" , "indoorMap" ] . sort ( ) ) ;
210210 expect ( fragments . geoMap . get ( "nodeId" ) ) . toBe ( "abc:123" ) ;
211- expect ( fragments . indoorMap . get ( "nodeId" ) ) . toBe ( "indoor-node " ) ;
211+ expect ( fragments . indoorMap . get ( "nodeId" ) ) . toBe ( "indoorNode " ) ;
212212 } ) ;
213213
214214 test ( "Test addActionToUrl adds a new fragment with nodeId for a node" , ( ) => {
@@ -244,7 +244,7 @@ describe("Test URL fragment utilities", () => {
244244 } ,
245245 data : { links : [ link ] } ,
246246 utils : { ...utils , graphRender : "graph" , mapRender : "map" } ,
247- nodeIndex : { "node1- node2" : 0 } ,
247+ nodeIndex : { "node1: node2" : 0 } ,
248248 } ;
249249
250250 const params = {
@@ -257,7 +257,7 @@ describe("Test URL fragment utilities", () => {
257257 const fragments = utils . parseUrlFragments ( ) ;
258258 expect ( fragments . basicUsage ) . toBeDefined ( ) ;
259259 expect ( fragments . basicUsage . get ( "id" ) ) . toBe ( "basicUsage" ) ;
260- expect ( fragments . basicUsage . get ( "nodeId" ) ) . toBe ( "node1- node2" ) ;
260+ expect ( fragments . basicUsage . get ( "nodeId" ) ) . toBe ( "node1: node2" ) ;
261261 } ) ;
262262
263263 test ( "Test addActionToUrl updates an existing fragment and preserves others" , ( ) => {
@@ -345,12 +345,12 @@ describe("Test URL fragment utilities", () => {
345345 onClickElement : mockOnClick ,
346346 } ,
347347 data : { links : [ link ] } ,
348- nodeIndex : { "n1- n2" : 0 } ,
348+ nodeIndex : { "n1: n2" : 0 } ,
349349 leaflet : { setView : mockSetView , getZoom : ( ) => 6 } ,
350350 utils,
351351 } ;
352352
353- window . location . hash = "#id=geo&nodeId=n1- n2" ;
353+ window . location . hash = "#id=geo&nodeId=n1: n2" ;
354354
355355 utils . applyUrlFragmentState ( self ) ;
356356
0 commit comments