Skip to content

Commit

Permalink
Update unit test to improve test coverage (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek105 authored Aug 16, 2023
1 parent dea251c commit 7d49734
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/StandardFunding.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,10 @@ contract StandardFundingGrantFundTest is GrantFundTestHelper {
_screeningVote(_grantFund, _tokenHolder3, testProposals[12].proposalId, 5_000 * 1e18);
_screeningVote(_grantFund, _tokenHolder5, testProposals[12].proposalId, 50_000 * 1e18);
assertEq(_findProposalIndex(testProposals[12].proposalId, _grantFund.getTopTenProposals(distributionId)), -1);

// cast screening votes on a proposal not in the top 10 to make it top 10 proposal
_screeningVote(_grantFund, _tokenHolder7, testProposals[12].proposalId, 2_500_000 * 1e18);
assertEq(_findProposalIndex(testProposals[12].proposalId, _grantFund.getTopTenProposals(distributionId)), 2);
}

function testStartNewDistributionPeriod() external {
Expand Down

0 comments on commit 7d49734

Please sign in to comment.