Skip to content

Commit

Permalink
Merge pull request #115 from biomage-org/not-used-mock
Browse files Browse the repository at this point in the history
remove unused mocks of S3 delete
  • Loading branch information
ivababukova authored Feb 20, 2023
2 parents 154a533 + f718ee1 commit d8b7b5b
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions tests/test-utils/mockAWSServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,6 @@ const mockS3PutObject = (payload = {}, error = null) => {
return fnSpy;
};

const mockS3DeleteObject = (payload = {}, error = null) => {
const fnSpy = jest.fn((x) => x);
AWSMock.setSDKInstance(AWS);
AWSMock.mock('S3', 'deleteObject', (params, callback) => {
fnSpy(params);
callback(error, payload);
});

return fnSpy;
};


const mockS3DeleteObjects = (payload = {}, error = null) => {
const fnSpy = jest.fn((x) => x);
AWSMock.setSDKInstance(AWS);
AWSMock.mock('S3', 'deleteObjects', (params, callback) => {
fnSpy(params);
callback(error, payload);
});

return fnSpy;
};

const mockS3GetSignedUrl = (payload = {}, error = null) => {
const fnSpy = jest.fn((x) => x);
AWSMock.setSDKInstance(AWS);
Expand Down Expand Up @@ -93,8 +70,6 @@ const mockBatchListJobs = (payload = {}, error = null) => {
module.exports = {
mockS3GetObject,
mockS3PutObject,
mockS3DeleteObject,
mockS3DeleteObjects,
mockS3GetSignedUrl,
mockS3GetObjectTagging,
mockBatchTerminateJob,
Expand Down

0 comments on commit d8b7b5b

Please sign in to comment.