test: add some more assertions to tests to make them explicit (#85)

This commit is contained in:
r4bbit 2023-10-27 20:17:05 +02:00 committed by GitHub
parent aa006ba177
commit 1e6f46ac8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -330,6 +330,10 @@ contract FinalizeVotingTest is FeaturedVotingContractTest {
assertEq(votings.length, 1);
assertEq(votings[0].id, 1);
assert(votings[0].finalized);
bytes[] memory featuredCommunities = directoryContract.getFeaturedCommunities();
assertEq(featuredCommunities.length, 1);
assertEq(featuredCommunities[0], communityIDs[0]);
}
function test_FinalizeVoting_FeatureByFirstCastedWhenVoteIsADraw() public {

View File

@ -378,6 +378,7 @@ contract FinalizeVotingRoomTest is VotingContractTest {
assertEq(votingRooms.length, 1);
assertEq(votingRooms[0].community, communityID1);
assertEq(votingRooms[0].finalized, true);
assertEq(votingRooms[0].evaluated, true);
assertEq(votingRooms[0].endAt, startAt + votingWithVerificationLength + 1);
assert(directoryContract.isCommunityInDirectory(communityID1));