Skip to content

Commit 2592fa8

Browse files
committed
Update test.spec.js
1 parent a9edee2 commit 2592fa8

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
@@ -696,7 +696,7 @@ describe('S3Adapter tests', () => {
696696
const s3 = getMockS3Adapter(options);
697697
const fileName = 'randomFileName.txt';
698698
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);
700700
expect(url.pathname.indexOf(fileName) > 13).toBe(true);
701701
});
702702
promises.push(response);
@@ -707,7 +707,7 @@ describe('S3Adapter tests', () => {
707707
const s3 = getMockS3Adapter(options);
708708
const fileName = 'foo/randomFileName.txt';
709709
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);
711711
expect(url.pathname.substring(1)).toEqual(options.bucketPrefix + fileName);
712712
});
713713
promises.push(response);
@@ -717,7 +717,7 @@ describe('S3Adapter tests', () => {
717717
const s3 = getMockS3Adapter(options);
718718
const fileName = 'foo/randomFileName.txt';
719719
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);
721721
expect(url.pathname.indexOf('foo/')).toEqual(6);
722722
expect(url.pathname.indexOf('random') > 13).toBe(true);
723723
});

0 commit comments

Comments
 (0)