@@ -729,7 +729,7 @@ describe('S3Adapter tests', () => {
729
729
const s3 = getMockS3Adapter ( options ) ;
730
730
const fileName = 'randomFileName.txt' ;
731
731
const response = s3 . createFile ( fileName , 'hello world' , 'text/utf8' ) . then ( value => {
732
- const url = new URL ( value . Location ) ;
732
+ const url = new URL ( value . location ) ;
733
733
expect ( url . pathname . indexOf ( fileName ) > 13 ) . toBe ( true ) ;
734
734
} ) ;
735
735
promises . push ( response ) ;
@@ -740,7 +740,7 @@ describe('S3Adapter tests', () => {
740
740
const s3 = getMockS3Adapter ( options ) ;
741
741
const fileName = 'foo/randomFileName.txt' ;
742
742
const response = s3 . createFile ( fileName , 'hello world' , 'text/utf8' ) . then ( value => {
743
- const url = new URL ( value . Location ) ;
743
+ const url = new URL ( value . location ) ;
744
744
expect ( url . pathname . substring ( 1 ) ) . toEqual ( options . bucketPrefix + fileName ) ;
745
745
} ) ;
746
746
promises . push ( response ) ;
@@ -750,7 +750,7 @@ describe('S3Adapter tests', () => {
750
750
const s3 = getMockS3Adapter ( options ) ;
751
751
const fileName = 'foo/randomFileName.txt' ;
752
752
const response = s3 . createFile ( fileName , 'hello world' , 'text/utf8' ) . then ( value => {
753
- const url = new URL ( value . Location ) ;
753
+ const url = new URL ( value . location ) ;
754
754
expect ( url . pathname . indexOf ( 'foo/' ) ) . toEqual ( 6 ) ;
755
755
expect ( url . pathname . indexOf ( 'random' ) > 13 ) . toBe ( true ) ;
756
756
} ) ;
0 commit comments