Skip to content

Commit

Permalink
✅ test unwindCollateral UNAUTHORIZED
Browse files Browse the repository at this point in the history
  • Loading branch information
cmontecoding committed Oct 21, 2024
1 parent 8327981 commit 2b70360
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/Unwind.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.27;

import {Bootstrap, Engine} from "test/utils/Bootstrap.sol";
import {IEngine} from "src/interfaces/IEngine.sol";

contract UnwindTest is Bootstrap {
function setUp() public {
vm.rollFork(ARBITRUM_BLOCK_NUMBER);
initializeArbitrum();
}

function test_unwindCollateral_UNAUTHORIZED() public {
vm.expectRevert(abi.encodeWithSelector(IEngine.Unauthorized.selector));
engine.unwindCollateral(accountId, 1, 1, address(0), 1, 1, 1, "");
}

function test_unwindCollateralETH_UNAUTHORIZED() public {
vm.expectRevert(abi.encodeWithSelector(IEngine.Unauthorized.selector));
engine.unwindCollateral(accountId, 1, 1, address(0), 1, 1, 1, "");
}

function test_unwindCollateral() public {
// todo add test
assertEq(true, false);
}
}

0 comments on commit 2b70360

Please sign in to comment.