Skip to content

Commit

Permalink
feat: add tests for protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed May 24, 2023
1 parent ecd7ea4 commit dfff890
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/contracts/test/core/dao/dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,12 @@ describe('DAO', function () {
});
});

describe.only('Protocol version', async () => {
it('returns the current protocol version', async () => {
expect(await dao.protocolVersion()).to.deep.equal([1, 3, 0]);
});
});

describe('setTrustedForwarder:', async () => {
it('reverts if the sender lacks the required permissionId', async () => {
await dao.revoke(
Expand Down
6 changes: 6 additions & 0 deletions packages/contracts/test/framework/dao/dao-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ describe('DAOFactory: ', function () {
});
});

context('Protocol version', async () => {
it('returns the current protocol version', async () => {
expect(await daoFactory.protocolVersion()).to.deep.equal([1, 3, 0]);
});
});

it('reverts if no plugin is provided', async () => {
await expect(
daoFactory.createDao(daoSettings, [])
Expand Down

0 comments on commit dfff890

Please sign in to comment.