Skip to content

Commit

Permalink
improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Oct 13, 2021
1 parent c4a049e commit c54aaa7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/governance/extensions/GovernorTimelockCompound.test.js
Expand Up @@ -51,6 +51,10 @@ contract('GovernorTimelockCompound', function (accounts) {
'GovernorTimelock',
]);

it('doesn\'t accept ether transfers', async function () {
await expectRevert.unspecified(web3.eth.sendTransaction({ from: voter, to: this.mock.address, value: 1 }));
});

it('post deployment check', async function () {
expect(await this.mock.name()).to.be.equal(name);
expect(await this.mock.token()).to.be.equal(this.token.address);
Expand Down
4 changes: 4 additions & 0 deletions test/governance/extensions/GovernorTimelockControl.test.js
Expand Up @@ -45,6 +45,10 @@ contract('GovernorTimelockControl', function (accounts) {
'GovernorTimelock',
]);

it('doesn\'t accept ether transfers', async function () {
await expectRevert.unspecified(web3.eth.sendTransaction({ from: voter, to: this.mock.address, value: 1 }));
});

it('post deployment check', async function () {
expect(await this.mock.name()).to.be.equal(name);
expect(await this.mock.token()).to.be.equal(this.token.address);
Expand Down

0 comments on commit c54aaa7

Please sign in to comment.