Skip to content

Commit

Permalink
Update legacyreport.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand committed Mar 24, 2021
1 parent 282362e commit 33fe0c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/legacyreport.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ describe('reconcile legacy reports', () => {
});
it('tests the reconciliation process', async () => {
await reconcileLegacyReports();
mockReport2 = await ActivityReport.findOne({ where: { id: mockReport2.id } });
expect(mockReport2.userId).toBe(user2.id);
expect(mockReport2.approvingManagerId).toBe(manager.id);
const ret = await ActivityReport.findOne({ where: { id: mockReport2.id } });
expect(ret.userId).toBe(user2.id);
expect(ret.approvingManagerId).toBe(manager.id);
const collaborators = await ActivityReportCollaborator.findAll({
where: { activityReportId: mockReport2.id },
where: { activityReportId: ret.id },
});
expect(collaborators.length).toBe(1);
});
Expand Down

0 comments on commit 33fe0c5

Please sign in to comment.