Skip to content

Commit

Permalink
chore: added version test
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsahu committed Jul 8, 2024
1 parent 1687710 commit 00cf2b6
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/test/Allowlist.1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,8 @@ contract AllowlistV1Tests is AllowlistV1TestBase {
vm.expectRevert(abi.encodeWithSignature("InvalidCount()"));
allowlist.setAllowPermissions(allowees, permissions);
}

function testVersion() external {
assertEq(allowlist.version(), "1.0.0");
}
}
4 changes: 4 additions & 0 deletions contracts/test/CoverageFund.1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,8 @@ contract CoverageFundTestV1 is CoverageFundV1TestBase {
river.pullCoverageFunds(address(coverageFund), 0);
assertEq(0, address(river).balance);
}

function testVersion() external {
assertEq(coverageFund.version(), "1.0.0");
}
}
4 changes: 4 additions & 0 deletions contracts/test/ELFeeRecipient.1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,8 @@ contract ELFeeRecipientV1Test is ELFeeRecipientV1TestBase {
address(feeRecipient).call{value: 1e18}(abi.encodeWithSignature("Hello()"));
vm.stopPrank();
}

function testVersion() external {
assertEq(feeRecipient.version(), "1.0.0");
}
}
4 changes: 4 additions & 0 deletions contracts/test/Firewall.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -503,4 +503,8 @@ contract FirewallTests is BytesGenerator, Test {
riverFirewall.setExecutor(don);
vm.stopPrank();
}

function testVersion() external {
assertEq(riverFirewall.version(), "1.0.0");
}
}
4 changes: 4 additions & 0 deletions contracts/test/OperatorsRegistry.1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3076,4 +3076,8 @@ contract OperatorsRegistryV1TestDistribution is Test {
assert(publicKeys.length == 0);
assert(signatures.length == 0);
}

function testVersion() external {
assertEq(operatorsRegistry.version(), "1.0.0");
}
}
4 changes: 4 additions & 0 deletions contracts/test/Oracle.1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -742,4 +742,8 @@ contract OracleV1Tests is OracleV1TestBase {
function testGetReportVariantCount() external {
assertEq(0, oracle.getReportVariantsCount());
}

function testVersion() external {
assertEq(oracle.version(), "1.0.0");
}
}
4 changes: 4 additions & 0 deletions contracts/test/RedeemManager.1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1722,4 +1722,8 @@ contract RedeemManagerV1Tests is Test {
vm.prank(user2);
redeemManager.claimRedeemRequests(redeemRequestIds, withdrawEventIds, true, type(uint16).max);
}

function testVersion() external {
assertEq(redeemManager.version(), "1.0.0");
}
}
4 changes: 4 additions & 0 deletions contracts/test/River.1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ contract RiverV1Tests is RiverV1TestBase {
vm.stopPrank();
}

function testVersion() external {
assertEq(river.version(), "1.0.0");
}

function testOnlyAdminCanSetKeeper() public {
address keeper = makeAddr("keeper");
assert(river.getKeeper() == admin);
Expand Down
4 changes: 4 additions & 0 deletions contracts/test/Withdraw.1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,8 @@ contract WithdrawV1Tests is WithdrawV1TestBase {
river.debug_pullFunds(address(withdraw), 0);
assertEq(0, address(river).balance);
}

function testVersion() external {
assertEq(withdraw.version(), "1.0.0");
}
}

0 comments on commit 00cf2b6

Please sign in to comment.