Skip to content

Commit

Permalink
refactor: change contract name
Browse files Browse the repository at this point in the history
test: add cliff duration constant in create with duration
test: change what to expect to be reverted
  • Loading branch information
andreivladbrg committed Apr 27, 2022
1 parent 9f12a79 commit c0264f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/unit/sablier-v2-cliff/SablierV2Cliff.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity >=0.8.4;
import { SablierV2Cliff } from "@sablier/v2-core/SablierV2Cliff.sol";
import { SablierV2CliffUnitTest } from "../SablierV2CliffUnitTest.t.sol";

contract SablierV2LinearTest is SablierV2CliffUnitTest {
contract SablierV2CliffTest is SablierV2CliffUnitTest {
function testConstructor() external {
assertEq(sablierV2Cliff.nextStreamId(), 1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract SablierV2Cliff__CreateWithDuration__UnitTest is SablierV2CliffUnitTest
cliffStream.depositAmount,
cliffStream.token,
duration,
cliffStream.cliffTime,
DEFAULT_CLIFF_DURATION,
cliffStream.cancelable
);
}
Expand All @@ -32,7 +32,7 @@ contract SablierV2Cliff__CreateWithDuration__UnitTest is SablierV2CliffUnitTest
cliffStream.depositAmount,
cliffStream.token,
DEFAULT_DURATION,
cliffStream.cliffTime,
DEFAULT_CLIFF_DURATION,
cliffStream.cancelable
);
ISablierV2Cliff.CliffStream memory createdCliffStream = sablierV2Cliff.getCliffStream(streamId);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/sablier-v2-cliff/create/create.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ contract SablierV2Cliff__Create__UnitTest is SablierV2CliffUnitTest {
vm.expectRevert(
abi.encodeWithSelector(
ISablierV2Cliff.SablierV2Cliff__CliffTimeGreaterThanStopTime.selector,
stopTime,
cliffTime
cliffTime,
stopTime
)
);
sablierV2Cliff.create(
Expand Down

0 comments on commit c0264f2

Please sign in to comment.