mirror of openzeppelin-contracts
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.
 
 
 
 
 
openzeppelin-contracts/test/introspection/SupportsInterfaceWithLookup...

23 lines
601 B

const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
const { assertRevert } = require('../helpers/assertRevert');
const SupportsInterfaceWithLookup = artifacts.require('SupportsInterfaceWithLookupMock');
require('chai')
.should();
contract('SupportsInterfaceWithLookup', function () {
beforeEach(async function () {
this.mock = await SupportsInterfaceWithLookup.new();
});
it('does not allow 0xffffffff', async function () {
await assertRevert(
this.mock.registerInterface(0xffffffff)
);
});
shouldSupportInterfaces([
'ERC165',
]);
});