Skip to content

Commit

Permalink
Update test description
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 16, 2025
1 parent 62507c1 commit 952d1a3
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions test/1-EMPRegistry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ describe("[1.0] V1EMPRegistry.sol", async () => {
);
});


it("Should not allow __v1EMPStrategyUtility to be address(0)..", async () => {
await expect(registry.v1EMPStrategyUtilityUpdate(ethers.constants.AddressZero)).to.be.rejectedWith(
ERROR.REGISTRY.INVALID_PARAM_STRATEGY_UTILITY
);
});

it("Should revert if _addressArrayUtility is address(0)..", async () => {
await expect(registry.v1EMPStrategyUtilityUpdate(fakeStrategyUtility.address)).to.be.rejectedWith(
ERROR.REGISTRY.ARRAY_UTILITY_NOT_SET
Expand All @@ -184,15 +191,6 @@ describe("[1.0] V1EMPRegistry.sol", async () => {
);
});

it("Should not allow __v1EMPStrategyUtility to be address(0)..", async () => {
await registry.addressArrayUtilityUpdate(addressArrayUtility.address);
await registry.percentUtilityUpdate(percentUtility.address);

await expect(registry.v1EMPStrategyUtilityUpdate(ethers.constants.AddressZero)).to.be.rejectedWith(
ERROR.REGISTRY.INVALID_PARAM_STRATEGY_UTILITY
);
});

it("Should not allow to set _v1EMPStrategyUtility until _addressArrayUtility is set..", async () => {
await expect(registry.v1EMPStrategyUtilityUpdate(fakeStrategyUtility.address)).to.be.rejectedWith(
ERROR.REGISTRY.ARRAY_UTILITY_NOT_SET
Expand Down Expand Up @@ -311,7 +309,7 @@ describe("[1.0] V1EMPRegistry.sol", async () => {
);
});

it("Should not allow EMPStrategyDeployer to be address(0)..", async () => {
it("Should not allow __v1EMPStrategyDeployer to be address(0)..", async () => {
await expect(registry.v1EMPStrategyDeployerUpdate(ethers.constants.AddressZero)).to.be.rejectedWith(
ERROR.REGISTRY.INVALID_PARAM_EMP_STRATEGY_DEPLOYER
);
Expand Down

0 comments on commit 952d1a3

Please sign in to comment.