Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daopunk committed Jul 12, 2024
1 parent e731139 commit a8b5dce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"test:coverage": "forge coverage --report lcov && lcov --ignore-errors unused --remove lcov.info 'node_modules/*' 'script/*' 'test/*' 'src/contracts/for-test/*' 'src/libraries/*' -o lcov.info.pruned && mv lcov.info.pruned lcov.info && genhtml -o coverage-report lcov.info"
},
"dependencies": {
"@opendollar/contracts": "0.0.0-e31c2151",
"@opendollar/contracts": "0.0.0-984c17c2",
"@openzeppelin/contracts": "4.9.6"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/E2ESaviour.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ contract E2ESaviourTestAccessControl is E2ESaviourSetup {

function test_modifyParams() public {
uint256 _vaultId = 1;
assertFalse(saviour.isEnabled(_vaultId));
assertFalse(saviour.isVaultEnabled(_vaultId));
saviour.modifyParameters('setVaultStatus', abi.encode(_vaultId, true));
assertTrue(saviour.isEnabled(_vaultId));
assertTrue(saviour.isVaultEnabled(_vaultId));
}

function test_modifyParams(bool _enabled) public {
uint256 _vaultId = 2;
saviour.modifyParameters('setVaultStatus', abi.encode(_vaultId, _enabled));
assertTrue(saviour.isEnabled(_vaultId) == _enabled);
assertTrue(saviour.isVaultEnabled(_vaultId) == _enabled);
}

function test_modifyParamsRevert(address _attacker, uint256 _vaultId, bool _enabled) public {
Expand Down Expand Up @@ -335,11 +335,11 @@ contract E2ESaviourTestLiquidateAndSave is E2ESaviourTestLiquidateSetup {
}

function test_enabledVault() public view {
assertTrue(saviour.isEnabled(vaults[aliceProxy]));
assertTrue(saviour.isVaultEnabled(vaults[aliceProxy]));
}

function test_disabledVault() public view {
assertFalse(saviour.isEnabled(vaults[bobProxy]));
assertFalse(saviour.isVaultEnabled(vaults[bobProxy]));
}

function test_protectSafe() public view {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@opendollar/[email protected]e31c2151":
version "0.0.0-e31c2151"
resolved "https://registry.yarnpkg.com/@opendollar/contracts/-/contracts-0.0.0-e31c2151.tgz#d96fea17c8f865f6b35c74a80d0e95cdfed10943"
integrity sha512-mffuIIDH6YV7gxEbUQghPtKvCamcFoFG4YWnWozjtDec/vrusm2TCjrAKvzV9v8+Sha0dkr6ROryfyMxZIH+IQ==
"@opendollar/[email protected]984c17c2":
version "0.0.0-984c17c2"
resolved "https://registry.yarnpkg.com/@opendollar/contracts/-/contracts-0.0.0-984c17c2.tgz#52a03256654cc7fe69cff430d60bed07d9a8648a"
integrity sha512-4AV3GKyi+deaSq1jsSUSP22/hkywYhF0EOE2v7cq7MnK3fuSKOSChKmLO0Hx/1PrRxhoE3/eIxqQuaPEqhpt0A==
dependencies:
"@defi-wonderland/solidity-utils" "0.0.0-4298c6c6"
"@openzeppelin/contracts" "4.9.6"
Expand Down

0 comments on commit a8b5dce

Please sign in to comment.