Skip to content

Commit

Permalink
Fix integration tests for creating donations with matchingFund data
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Dec 5, 2023
1 parent a5bc9d0 commit e0ec480
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"test:instantPowerResolver": "NODE_ENV=test mocha ./test/pre-test-scripts.ts ./src/resolvers/instantPowerResolver.test.ts",
"test:fillSnapshotBalance": "NODE_ENV=test mocha ./test/pre-test-scripts.ts ./src/services/cronJobs/fillSnapshotBalances.test.ts",
"test:projectAddressRepository": "NODE_ENV=test mocha ./test/pre-test-scripts.ts ./src/repositories/projectAddressRepository.test.ts",
"test:donationService": "NODE_ENV=test mocha ./test/pre-test-scripts.ts ./src/services/donationService.test.ts",
"test:donationService": "NODE_ENV=test mocha ./test/pre-test-scripts.ts ./src/repositories/qfRoundHistoryRepository.test.ts ./src/services/donationService.test.ts",
"test:userService": "NODE_ENV=test mocha ./test/pre-test-scripts.ts ./src/services/userService.test.ts",
"test:reactionsService": "NODE_ENV=test mocha ./test/pre-test-scripts.ts ./src/services/reactionsService.test.ts",
"test:powerSnapshotService": "NODE_ENV=test mocha ./test/pre-test-scripts.ts ./src/services/powerSnapshotServices.test.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/services/donationService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,9 @@ function insertDonationsFromQfRoundHistoryTestCases() {
});

it('should return correct value for single project', async () => {
// First call it to make sure there isnt any thing in DB to make conflicts in our test cases
await insertDonationsFromQfRoundHistory();

const usersDonations: number[][] = [
[1, 3], // 4
[2, 23], // 25
Expand Down

0 comments on commit e0ec480

Please sign in to comment.