Skip to content

Commit

Permalink
Minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Jul 2, 2024
1 parent 61e432b commit bce5847
Showing 1 changed file with 6 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,46 +283,22 @@ describe('Personal Space Admin Plugin', function () {
.connect(carol)
.submitEdits('ipfs://', spacePlugin.address)
)
.to.be.revertedWithCustomError(
personalSpaceVotingPlugin,
'DaoUnauthorized'
)
.withArgs(
dao.address,
personalSpaceVotingPlugin.address,
carol.address,
MEMBER_PERMISSION_ID
);
.to.be.revertedWithCustomError(personalSpaceVotingPlugin, 'NotAMember')
.withArgs(carol.address);
await expect(
personalSpaceVotingPlugin
.connect(carol)
.submitAcceptSubspace(ADDRESS_TWO, spacePlugin.address)
)
.to.be.revertedWithCustomError(
personalSpaceVotingPlugin,
'DaoUnauthorized'
)
.withArgs(
dao.address,
personalSpaceVotingPlugin.address,
carol.address,
MEMBER_PERMISSION_ID
);
.to.be.revertedWithCustomError(personalSpaceVotingPlugin, 'NotAMember')
.withArgs(carol.address);
await expect(
personalSpaceVotingPlugin
.connect(carol)
.submitRemoveSubspace(ADDRESS_TWO, spacePlugin.address)
)
.to.be.revertedWithCustomError(
personalSpaceVotingPlugin,
'DaoUnauthorized'
)
.withArgs(
dao.address,
personalSpaceVotingPlugin.address,
carol.address,
MEMBER_PERMISSION_ID
);
.to.be.revertedWithCustomError(personalSpaceVotingPlugin, 'NotAMember')
.withArgs(carol.address);
});

it('Only editors can call permission proposal wrappers', async () => {
Expand Down

0 comments on commit bce5847

Please sign in to comment.