We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7afb0a2 commit f5616d9Copy full SHA for f5616d9
spec/test.spec.js
@@ -874,7 +874,15 @@ describe('S3Adapter tests', () => {
874
presignedUrl: true
875
};
876
const s3 = new S3Adapter(options);
877
+
878
+ const mockS3Response = {
879
+ ETag: '"mock-etag"',
880
+ VersionId: 'mock-version',
881
+ Location: 'mock-location'
882
+ };
883
+ s3ClientMock.send.and.returnValue(Promise.resolve(mockS3Response));
884
s3._s3Client = s3ClientMock;
885
886
// Mock getFileLocation to return a presigned URL
887
spyOn(s3, 'getFileLocation').and.returnValue(Promise.resolve('https://presigned-url.com/file.txt'));
888
0 commit comments