-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add missing errors, events and 'ModuleKeeper' constructor test
- Loading branch information
1 parent
92babaf
commit d2c74a3
Showing
3 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.26; | ||
|
||
import { ModuleKeeper } from "./../../../../src/ModuleKeeper.sol"; | ||
import { Base_Test } from "../../../Base.t.sol"; | ||
|
||
contract Constructor_ModuleKeeper_Test is Base_Test { | ||
function setUp() public virtual override { | ||
Base_Test.setUp(); | ||
} | ||
|
||
function test_Constructor() external { | ||
// Run the test | ||
ModuleKeeper moduleKeeper = new ModuleKeeper({ _initialOwner: users.admin }); | ||
|
||
// Assert the actual and expected owner | ||
address owner = moduleKeeper.owner(); | ||
assertEq(owner, users.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
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