Merge pull request #9892 from backstage/dependabot/npm_and_yarn/aws-sdk-mock-5.6.2
chore(deps-dev): bump aws-sdk-mock from 5.2.1 to 5.6.2
This commit is contained in:
@@ -323,7 +323,14 @@ describe('AwsS3UrlReader', () => {
|
||||
AWSMock.setSDKInstance(aws);
|
||||
|
||||
AWSMock.mock('S3', 'getObject', (_, callback) => {
|
||||
callback({ statusCode: 304 }, null);
|
||||
const error: aws.AWSError = {
|
||||
code: 'NotModified',
|
||||
message: 'Not Modified',
|
||||
statusCode: 304,
|
||||
name: 'oops',
|
||||
time: new Date('2019-01-01T00:00:00.000Z'),
|
||||
};
|
||||
callback(error, undefined);
|
||||
});
|
||||
|
||||
const s3 = new aws.S3();
|
||||
|
||||
Reference in New Issue
Block a user