Files
openzeppelin-contracts/test/introspection/SupportsInterfaceWithLookup.test.js
Nicolás Venturo cea2a85a42 Remove Babel (#1074)
* Test helpers no longer rely on Babel.

* Behaviours are no longer imported.

* Removed Babel dependency.

* Fixed linter errors.
2018-07-18 19:37:16 -03:00

25 lines
641 B
JavaScript

const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
const { assertRevert } = require('../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',
]);
});