@@ -544,7 +544,7 @@ describe("AutoDiscovery", function () {
544
544
. respond ( 200 , {
545
545
versions : [ "r0.0.1" ] ,
546
546
} ) ;
547
- httpBackend . when ( "GET" , "/_matrix/identity/api/v1 " ) . respond ( 404 , { } ) ;
547
+ httpBackend . when ( "GET" , "/_matrix/identity/v2 " ) . respond ( 404 , { } ) ;
548
548
httpBackend . when ( "GET" , "/.well-known/matrix/client" ) . respond ( 200 , {
549
549
"m.homeserver" : {
550
550
// Note: we also expect this test to trim the trailing slash
@@ -591,7 +591,7 @@ describe("AutoDiscovery", function () {
591
591
. respond ( 200 , {
592
592
versions : [ "r0.0.1" ] ,
593
593
} ) ;
594
- httpBackend . when ( "GET" , "/_matrix/identity/api/v1 " ) . respond ( 500 , { } ) ;
594
+ httpBackend . when ( "GET" , "/_matrix/identity/v2 " ) . respond ( 500 , { } ) ;
595
595
httpBackend . when ( "GET" , "/.well-known/matrix/client" ) . respond ( 200 , {
596
596
"m.homeserver" : {
597
597
// Note: we also expect this test to trim the trailing slash
@@ -636,9 +636,9 @@ describe("AutoDiscovery", function () {
636
636
versions : [ "r0.0.1" ] ,
637
637
} ) ;
638
638
httpBackend
639
- . when ( "GET" , "/_matrix/identity/api/v1 " )
639
+ . when ( "GET" , "/_matrix/identity/v2 " )
640
640
. check ( ( req ) => {
641
- expect ( req . path ) . toEqual ( "https://identity.example.org/_matrix/identity/api/v1 " ) ;
641
+ expect ( req . path ) . toEqual ( "https://identity.example.org/_matrix/identity/v2 " ) ;
642
642
} )
643
643
. respond ( 200 , { } ) ;
644
644
httpBackend . when ( "GET" , "/.well-known/matrix/client" ) . respond ( 200 , {
@@ -682,9 +682,9 @@ describe("AutoDiscovery", function () {
682
682
versions : [ "r0.0.1" ] ,
683
683
} ) ;
684
684
httpBackend
685
- . when ( "GET" , "/_matrix/identity/api/v1 " )
685
+ . when ( "GET" , "/_matrix/identity/v2 " )
686
686
. check ( ( req ) => {
687
- expect ( req . path ) . toEqual ( "https://identity.example.org/_matrix/identity/api/v1 " ) ;
687
+ expect ( req . path ) . toEqual ( "https://identity.example.org/_matrix/identity/v2 " ) ;
688
688
} )
689
689
. respond ( 200 , { } ) ;
690
690
httpBackend . when ( "GET" , "/.well-known/matrix/client" ) . respond ( 200 , {
0 commit comments