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:
Ben Lambert
2022-03-15 12:05:30 +01:00
committed by GitHub
2 changed files with 11 additions and 4 deletions
@@ -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();