Skip to content

Commit 631785a

Browse files
committed
fix test
1 parent c590239 commit 631785a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

spec/mocks/s3adapter.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ function getMockS3Adapter(options) {
1616

1717
const objects = {};
1818

19+
// Preserve original client config so that @aws-sdk/lib-storage Upload
20+
// can access client.config.requestHandler and other required properties.
21+
const originalConfig = s3._s3Client.config;
22+
1923
s3._s3Client = {
24+
config: originalConfig,
2025
// @ts-ignore
2126
send: command => {
2227
if (command instanceof PutObjectCommand) {

0 commit comments

Comments
 (0)