Skip to content

Commit

Permalink
test: Fix TypeScript error
Browse files Browse the repository at this point in the history
  • Loading branch information
manueliglesias committed May 14, 2019
1 parent 1885a8a commit 013416a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as S3 from 'aws-sdk/clients/s3';

const uploadMock = jest.fn(() => ({ promise: () => Promise.resolve() }));

S3.prototype.upload = uploadMock;
(<any>S3.prototype).upload = uploadMock;

const inspectionLink = jest.fn((operation, forward) => forward(operation));

Expand Down Expand Up @@ -340,4 +340,4 @@ test('Removes localUri and mimeType from variables sent to api and keeps everyth
},
error: fail
});
})
})

0 comments on commit 013416a

Please sign in to comment.