@@ -696,7 +696,7 @@ describe('S3Adapter tests', () => {
696
696
const s3 = getMockS3Adapter ( options ) ;
697
697
const fileName = 'randomFileName.txt' ;
698
698
const response = s3 . createFile ( fileName , 'hello world' , 'text/utf8' ) . then ( value => {
699
- const url = new URL ( value . Location ) ;
699
+ const url = new URL ( value . location ) ;
700
700
expect ( url . pathname . indexOf ( fileName ) > 13 ) . toBe ( true ) ;
701
701
} ) ;
702
702
promises . push ( response ) ;
@@ -707,7 +707,7 @@ describe('S3Adapter tests', () => {
707
707
const s3 = getMockS3Adapter ( options ) ;
708
708
const fileName = 'foo/randomFileName.txt' ;
709
709
const response = s3 . createFile ( fileName , 'hello world' , 'text/utf8' ) . then ( value => {
710
- const url = new URL ( value . Location ) ;
710
+ const url = new URL ( value . location ) ;
711
711
expect ( url . pathname . substring ( 1 ) ) . toEqual ( options . bucketPrefix + fileName ) ;
712
712
} ) ;
713
713
promises . push ( response ) ;
@@ -717,7 +717,7 @@ describe('S3Adapter tests', () => {
717
717
const s3 = getMockS3Adapter ( options ) ;
718
718
const fileName = 'foo/randomFileName.txt' ;
719
719
const response = s3 . createFile ( fileName , 'hello world' , 'text/utf8' ) . then ( value => {
720
- const url = new URL ( value . Location ) ;
720
+ const url = new URL ( value . location ) ;
721
721
expect ( url . pathname . indexOf ( 'foo/' ) ) . toEqual ( 6 ) ;
722
722
expect ( url . pathname . indexOf ( 'random' ) > 13 ) . toBe ( true ) ;
723
723
} ) ;
0 commit comments