-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: using Given keyword in branching Trees (#641)
* Using Given keyword on the branching trees (cherry picked from commit d365705) * test: use "it" for test nodes --------- Co-authored-by: Paul Razvan Berg <paul.razvan.berg@gmail.com>
- Loading branch information
1 parent
b5d02b7
commit f4a0731
Showing
8 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/integration/concrete/comptroller/set-protocol-fee/setProtocolFee.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/integration/concrete/comptroller/toggle-flash-asset/toggleFlashAsset.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
test/unit/concrete/adminable/transfer-admin/transferAdmin.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
transferAdmin.t.sol | ||
├── when the caller is not the admin | ||
├── given the caller is not the admin | ||
│ └── it should revert | ||
└── when the caller is the admin | ||
├── when the admin is the same as the current admin | ||
└── given the caller is the admin | ||
├── when new admin is same as current admin | ||
│ ├── it should re-set the admin | ||
│ └── it should emit a {TransferAdmin} event | ||
└── when the admin is not the same as the current admin | ||
├── when the admin is the zero address | ||
└── when new admin is not same as current admin | ||
├── when the new admin is the zero address | ||
│ ├── it should set the admin to the zero address | ||
│ └── it should emit a {TransferAdmin} | ||
└── when the admin is not the zero address | ||
└── when the new admin is not the zero address | ||
├── it should set the new admin | ||
└── it should emit a {TransferAdmin} event and set the new admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/unit/concrete/comptroller/set-flash-fee/setFlashFee.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters