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 816c780 commit 8c15366Copy full SHA for 8c15366
spec/test.spec.js
@@ -841,7 +841,15 @@ describe('S3Adapter tests', () => {
841
presignedUrl: true
842
};
843
const s3 = new S3Adapter(options);
844
+
845
+ const mockS3Response = {
846
+ ETag: '"mock-etag"',
847
+ VersionId: 'mock-version',
848
+ Location: 'mock-location'
849
+ };
850
+ s3ClientMock.send.and.returnValue(Promise.resolve(mockS3Response));
851
s3._s3Client = s3ClientMock;
852
853
// Mock getFileLocation to return a presigned URL
854
spyOn(s3, 'getFileLocation').and.returnValue(Promise.resolve('https://presigned-url.com/file.txt'));
855
0 commit comments