Skip to content

Commit

Permalink
Tests running clean
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Jan 31, 2024
1 parent c4ff99a commit 0ffd2f0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('Member Access Condition', function () {
{to: SOME_CONTRACT_ADDRESS, value: 0, data: '0x'},
];

// Valid grant
// Valid member add
actions[0].data = mainVotingPluginInterface.encodeFunctionData(
'addMember',
[carol.address]
Expand All @@ -136,7 +136,7 @@ describe('Member Access Condition', function () {
)
).to.eq(true);

// Valid revoke
// Valid membe remove
actions[0].data = mainVotingPluginInterface.encodeFunctionData(
'removeMember',
[carol.address]
Expand All @@ -150,7 +150,7 @@ describe('Member Access Condition', function () {
)
).to.eq(true);

// Invalid
// Invalid (editor)
actions[0].data = mainVotingPluginInterface.encodeFunctionData(
'addEditor',
[carol.address]
Expand All @@ -162,9 +162,9 @@ describe('Member Access Condition', function () {
EXECUTE_PERMISSION_ID, // permission (used)
daoInterface.encodeFunctionData('execute', [ONE_BYTES32, actions, 0])
)
).to.eq(true);
).to.eq(false);

// Invalid
// Invalid (editor)
actions[0].data = mainVotingPluginInterface.encodeFunctionData(
'removeEditor',
[carol.address]
Expand All @@ -176,7 +176,7 @@ describe('Member Access Condition', function () {
EXECUTE_PERMISSION_ID, // permission (used)
daoInterface.encodeFunctionData('execute', [ONE_BYTES32, actions, 0])
)
).to.eq(true);
).to.eq(false);

// Invalid
actions[0].data = daoInterface.encodeFunctionData('grant', [
Expand Down

0 comments on commit 0ffd2f0

Please sign in to comment.