You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
623 B
25 lines
623 B
7 years ago
|
import shouldSupportInterfaces from './SupportsInterface.behavior';
|
||
|
import assertRevert from '../helpers/assertRevert';
|
||
|
|
||
|
const SupportsInterfaceWithLookup = artifacts.require('SupportsInterfaceWithLookupMock');
|
||
|
|
||
|
require('chai')
|
||
|
.use(require('chai-as-promised'))
|
||
|
.should();
|
||
|
|
||
|
contract('SupportsInterfaceWithLookup', function (accounts) {
|
||
|
before(async function () {
|
||
|
this.mock = await SupportsInterfaceWithLookup.new();
|
||
|
});
|
||
|
|
||
|
it('does not allow 0xffffffff', async function () {
|
||
|
await assertRevert(
|
||
|
this.mock.registerInterface(0xffffffff)
|
||
|
);
|
||
|
});
|
||
|
|
||
|
shouldSupportInterfaces([
|
||
|
'ERC165',
|
||
|
]);
|
||
|
});
|