@@ -5717,7 +5717,7 @@ describe('MatrixClient', () => {
5717
5717
Buffer . isBuffer = < any > ( i => i === data ) ;
5718
5718
5719
5719
// noinspection TypeScriptValidateJSTypes
5720
- http . when ( "POST" , "/_matrix/client/v1/ media/upload" ) . respond ( 200 , ( path , content , req ) => {
5720
+ http . when ( "POST" , "/_matrix/media/v3 /upload" ) . respond ( 200 , ( path , content , req ) => {
5721
5721
expect ( content ) . toBeDefined ( ) ;
5722
5722
expect ( req . queryParams . filename ) . toEqual ( filename ) ;
5723
5723
expect ( req . headers [ "Content-Type" ] ) . toEqual ( contentType ) ;
@@ -5740,7 +5740,7 @@ describe('MatrixClient', () => {
5740
5740
Buffer . isBuffer = < any > ( i => i === data ) ;
5741
5741
5742
5742
// noinspection TypeScriptValidateJSTypes
5743
- http . when ( "POST" , "/_matrix/client/v1/ media/upload" ) . respond ( 200 , ( path , content , req ) => {
5743
+ http . when ( "POST" , "/_matrix/media/v3 /upload" ) . respond ( 200 , ( path , content , req ) => {
5744
5744
expect ( content ) . toBeDefined ( ) ;
5745
5745
expect ( req . queryParams . filename ) . toEqual ( filename ) ;
5746
5746
expect ( req . headers [ "Content-Type" ] ) . toEqual ( contentType ) ;
@@ -5798,7 +5798,7 @@ describe('MatrixClient', () => {
5798
5798
} ) ;
5799
5799
5800
5800
// noinspection TypeScriptValidateJSTypes
5801
- http . when ( "POST" , "/_matrix/client/v1/ media/upload" ) . respond ( 200 , ( path , content , req ) => {
5801
+ http . when ( "POST" , "/_matrix/media/v3 /upload" ) . respond ( 200 , ( path , content , req ) => {
5802
5802
expect ( content ) . toBeDefined ( ) ;
5803
5803
// HACK: We know the mock library will return JSON
5804
5804
expect ( req . headers [ "Content-Type" ] ) . toEqual ( "application/json" ) ;
0 commit comments