test: add some more assertions to tests to make them explicit (#85)
This commit is contained in:
parent
aa006ba177
commit
1e6f46ac8e
|
@ -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 {
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue