* All tests now use account names, and dont use accounts[0] (except ERC721) * Added account names to some missing contracts.
24 lines
601 B
JavaScript
24 lines
601 B
JavaScript
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',
|
|
]);
|
|
});
|