Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand committed Mar 11, 2021
1 parent 1c29f3e commit e851018
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/files/handlers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ describe('File Upload', () => {
});

describe('File Upload Handlers happy path', () => {
beforeEach(async () => {
beforeEach(() => {
uploadFile.mockReset();
getPresignedURL.mockReset();
});
it('tests a file upload', async () => {
ActivityReportPolicy.mockImplementation(() => ({
canUpdate: () => true,
}));
Expand All @@ -94,6 +96,7 @@ describe('File Upload', () => {
.expect(200)
.then((res) => {
fileId = res.body.id;
expect(uploadFile).toHaveBeenCalled();
});
expect(mockAddToScanQueue).toHaveBeenCalled();
const file = await File.findOne({ where: { id: fileId } });
Expand Down

0 comments on commit e851018

Please sign in to comment.