Skip to content

Commit

Permalink
Fix updateUserTotalReceived() test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Nov 28, 2023
1 parent a3ed597 commit 6622ce1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/userService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { findUserById } from '../repositories/userRepository';
import { QfRound } from '../entities/qfRound';
import moment from 'moment';
import { QfRoundHistory } from '../entities/qfRoundHistory';
import { updateTotalDonationsOfProject } from './donationService';

describe(
'updateUserTotalDonated() test cases',
Expand Down Expand Up @@ -147,6 +148,7 @@ function updateUserTotalReceivedTestCases() {
owner.totalReceived = 0;
await owner?.save();

await updateTotalDonationsOfProject(project.id);
await updateUserTotalReceived(user.id);

const updatedOwner = await findUserById(user.id);
Expand Down

0 comments on commit 6622ce1

Please sign in to comment.