Skip to content

Commit d8c1e15

Browse files
committed
Update test.spec.js
1 parent be61240 commit d8c1e15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/test.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ describe('S3Adapter tests', () => {
729729
const s3 = getMockS3Adapter(options);
730730
const fileName = 'randomFileName.txt';
731731
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);
733733
expect(url.pathname.indexOf(fileName) > 13).toBe(true);
734734
});
735735
promises.push(response);
@@ -740,7 +740,7 @@ describe('S3Adapter tests', () => {
740740
const s3 = getMockS3Adapter(options);
741741
const fileName = 'foo/randomFileName.txt';
742742
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);
744744
expect(url.pathname.substring(1)).toEqual(options.bucketPrefix + fileName);
745745
});
746746
promises.push(response);
@@ -750,7 +750,7 @@ describe('S3Adapter tests', () => {
750750
const s3 = getMockS3Adapter(options);
751751
const fileName = 'foo/randomFileName.txt';
752752
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);
754754
expect(url.pathname.indexOf('foo/')).toEqual(6);
755755
expect(url.pathname.indexOf('random') > 13).toBe(true);
756756
});

0 commit comments

Comments
 (0)