Files
openzeppelin-contracts/test/introspection/ERC165.test.js
Nicolás Venturo 5997da9693 Fix lint errors.
2019-01-11 16:49:12 -03:00

19 lines
493 B
JavaScript

const { shouldFail } = require('openzeppelin-test-helpers');
const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
const ERC165Mock = artifacts.require('ERC165Mock');
contract('ERC165', function () {
beforeEach(async function () {
this.mock = await ERC165Mock.new();
});
it('does not allow 0xffffffff', async function () {
await shouldFail.reverting(this.mock.registerInterface('0xffffffff'));
});
shouldSupportInterfaces([
'ERC165',
]);
});