Skip to content

Commit

Permalink
test(space): fix 'enableModules' test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielstoica committed Jan 28, 2025
1 parent 9364082 commit 12622c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/concrete/space/enable-modules/enableModules.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ contract EnableModule_Unit_Concrete_Test is Space_Unit_Concrete_Test {
}

function test_RevertWhen_ModuleNotAllowlisted() external whenCallerOwner {
// Create a new module that is not allowlisted
address notAllowlistedModule = address(new MockModule());
mockModules[0] = notAllowlistedModule;

// Expect the next call to revert with the {ModuleNotAllowlisted}
vm.expectRevert(Errors.ModuleNotAllowlisted.selector);

Expand Down

0 comments on commit 12622c9

Please sign in to comment.