chore: fixing tests

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-03-15 10:39:04 +01:00
parent d19b637699
commit 848157fb49
@@ -247,7 +247,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();