Skip to content

Commit

Permalink
update activityReports.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand committed Mar 25, 2021
1 parent 3f16fa1 commit 01e3c05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/activityReports.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ describe('Activity Reports DB service', () => {
});

it('creates a new report', async () => {
const beginningARCount = await ActivityReport.count();
const beginningARCount = await ActivityReport.findAll({ where: { userId: mockUser.id } });
const report = await createOrUpdate(reportObject);
const endARCount = await ActivityReport.count();
expect(endARCount - beginningARCount).toBe(1);
const endARCount = await ActivityReport.findAll({ where: { userId: mockUser.id } });
expect(endARCount.length - beginningARCount.length).toBe(1);
expect(report.activityRecipients[0].grant.id).toBe(RECIPIENT_ID);
});

Expand Down

0 comments on commit 01e3c05

Please sign in to comment.