* Test: Remove chai-as-promised calls * Test/Helpers: expectThrow accepts optional message * NPM: Remove chai-as-promised * Contracts/DestructibleMock: Fix lint
24 lines
609 B
JavaScript
24 lines
609 B
JavaScript
const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
|
|
const { assertRevert } = require('../helpers/assertRevert');
|
|
|
|
const SupportsInterfaceWithLookup = artifacts.require('SupportsInterfaceWithLookupMock');
|
|
|
|
require('chai')
|
|
.should();
|
|
|
|
contract('SupportsInterfaceWithLookup', function (accounts) {
|
|
beforeEach(async function () {
|
|
this.mock = await SupportsInterfaceWithLookup.new();
|
|
});
|
|
|
|
it('does not allow 0xffffffff', async function () {
|
|
await assertRevert(
|
|
this.mock.registerInterface(0xffffffff)
|
|
);
|
|
});
|
|
|
|
shouldSupportInterfaces([
|
|
'ERC165',
|
|
]);
|
|
});
|