@@ -350,7 +350,7 @@ describe('encoding: path params', () => {
350350
351351 await act ( ( ) => router . load ( ) )
352352
353- expect ( router . state . location . url . endsWith ( '/posts/tanner' ) ) . toBe ( true )
353+ expect ( router . state . location . url . href . endsWith ( '/posts/tanner' ) ) . toBe ( true )
354354 expect ( router . state . location . href ) . toBe ( '/posts/tanner' )
355355 expect ( router . state . location . pathname ) . toBe ( '/posts/tanner' )
356356 } )
@@ -362,7 +362,9 @@ describe('encoding: path params', () => {
362362
363363 await act ( ( ) => router . load ( ) )
364364
365- expect ( router . state . location . url . endsWith ( '/posts/%F0%9F%9A%80' ) ) . toBe ( true )
365+ expect ( router . state . location . url . href . endsWith ( '/posts/%F0%9F%9A%80' ) ) . toBe (
366+ true ,
367+ )
366368 expect ( router . state . location . href ) . toBe ( '/posts/%F0%9F%9A%80' )
367369 expect ( router . state . location . pathname ) . toBe ( '/posts/🚀' )
368370 } )
@@ -381,7 +383,9 @@ describe('encoding: path params', () => {
381383 } ) ,
382384 )
383385
384- expect ( router . state . location . url . endsWith ( '/posts/100%2525' ) ) . toBe ( true )
386+ expect ( router . state . location . url . href . endsWith ( '/posts/100%2525' ) ) . toBe (
387+ true ,
388+ )
385389 expect ( router . state . location . href ) . toBe ( '/posts/100%2525' )
386390 expect ( router . state . location . pathname ) . toBe ( '/posts/100%2525' )
387391 } )
@@ -406,7 +410,9 @@ describe('encoding: path params', () => {
406410 )
407411
408412 expect (
409- router . state . location . url . endsWith ( `/posts/${ encodedValue } jane%25` ) ,
413+ router . state . location . url . href . endsWith (
414+ `/posts/${ encodedValue } jane%25` ,
415+ ) ,
410416 ) . toBe ( true )
411417 expect ( router . state . location . href ) . toBe ( `/posts/${ encodedValue } jane%25` )
412418 expect ( router . state . location . pathname ) . toBe (
@@ -441,7 +447,7 @@ describe('encoding: path params', () => {
441447 )
442448
443449 expect (
444- router . state . location . url . endsWith ( `/posts/${ character } jane%25` ) ,
450+ router . state . location . url . href . endsWith ( `/posts/${ character } jane%25` ) ,
445451 ) . toBe ( true )
446452 expect ( router . state . location . href ) . toBe ( `/posts/${ character } jane%25` )
447453 expect ( router . state . location . pathname ) . toBe ( `/posts/${ character } jane%25` )
@@ -455,7 +461,9 @@ describe('encoding: path params', () => {
455461
456462 await act ( ( ) => router . load ( ) )
457463
458- expect ( router . state . location . url . endsWith ( '/posts/%F0%9F%9A%80' ) ) . toBe ( true )
464+ expect ( router . state . location . url . href . endsWith ( '/posts/%F0%9F%9A%80' ) ) . toBe (
465+ true ,
466+ )
459467 expect ( router . state . location . href ) . toBe ( '/posts/%F0%9F%9A%80' )
460468 expect ( router . state . location . pathname ) . toBe ( '/posts/🚀' )
461469 } )
@@ -472,7 +480,7 @@ describe('encoding: path params', () => {
472480 await act ( ( ) => router . load ( ) )
473481
474482 expect (
475- router . state . location . url . endsWith (
483+ router . state . location . url . href . endsWith (
476484 '/posts/framework%2Freact%2Fguide%2Ffile-based-routing%20tanstack' ,
477485 ) ,
478486 ) . toBe ( true )
@@ -619,7 +627,7 @@ describe('encoding/decoding: wildcard routes/params', () => {
619627
620628 await router . load ( )
621629
622- expect ( router . state . location . url . endsWith ( '/tanner' ) ) . toBe ( true )
630+ expect ( router . state . location . url . href . endsWith ( '/tanner' ) ) . toBe ( true )
623631 expect ( router . state . location . href ) . toBe ( '/tanner' )
624632 expect ( router . state . location . pathname ) . toBe ( '/tanner' )
625633 } )
@@ -631,7 +639,7 @@ describe('encoding/decoding: wildcard routes/params', () => {
631639
632640 await router . load ( )
633641
634- expect ( router . state . location . url . endsWith ( '/%F0%9F%9A%80' ) ) . toBe ( true )
642+ expect ( router . state . location . url . href . endsWith ( '/%F0%9F%9A%80' ) ) . toBe ( true )
635643 expect ( router . state . location . href ) . toBe ( '/%F0%9F%9A%80' )
636644 expect ( router . state . location . pathname ) . toBe ( '/🚀' )
637645 } )
@@ -649,7 +657,7 @@ describe('encoding/decoding: wildcard routes/params', () => {
649657 await router . load ( )
650658
651659 expect (
652- router . state . location . url . endsWith ( `/100${ encodedValue } 100` ) ,
660+ router . state . location . url . href . endsWith ( `/100${ encodedValue } 100` ) ,
653661 ) . toBe ( true )
654662 expect ( router . state . location . href ) . toBe ( `/100${ encodedValue } 100` )
655663 expect ( router . state . location . pathname ) . toBe ( `/100${ encodedValue } 100` )
@@ -664,7 +672,7 @@ describe('encoding/decoding: wildcard routes/params', () => {
664672
665673 await router . load ( )
666674
667- expect ( router . state . location . url . endsWith ( '/%F0%9F%9A%80' ) ) . toBe ( true )
675+ expect ( router . state . location . url . href . endsWith ( '/%F0%9F%9A%80' ) ) . toBe ( true )
668676 expect ( router . state . location . href ) . toBe ( '/%F0%9F%9A%80' )
669677 expect ( router . state . location . pathname ) . toBe ( '/🚀' )
670678 } )
@@ -681,7 +689,7 @@ describe('encoding/decoding: wildcard routes/params', () => {
681689 await router . load ( )
682690
683691 expect (
684- router . state . location . url . endsWith (
692+ router . state . location . url . href . endsWith (
685693 '/framework%2Freact%2Fguide%2Ffile-based-routing%20tanstack' ,
686694 ) ,
687695 ) . toBe ( true )
@@ -703,7 +711,7 @@ describe('encoding/decoding: wildcard routes/params', () => {
703711 await router . load ( )
704712
705713 expect (
706- router . state . location . url . endsWith (
714+ router . state . location . url . href . endsWith (
707715 '/framework/react/guide/file-based-routing%20tanstack' ,
708716 ) ,
709717 ) . toBe ( true )
0 commit comments