Skip to content

Commit

Permalink
improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Feb 12, 2021
1 parent d963cf8 commit 0604e82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/introspection/ERC165.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ contract('ERC165', function (accounts) {
this.mock = await ERC165Mock.new();
});

it('register interface', async function () {
expect(await this.mock.supportsInterface('0x00000001')).to.be.equal(false);
await this.mock.registerInterface('0x00000001');
expect(await this.mock.supportsInterface('0x00000001')).to.be.equal(true);
});

it('does not allow 0xffffffff', async function () {
await expectRevert(this.mock.registerInterface('0xffffffff'), 'ERC165: invalid interface id');
});
Expand Down

0 comments on commit 0604e82

Please sign in to comment.