Files
openzeppelin-contracts/test/introspection/ERC165.test.js
Martín 4b21fcf5af Add Mock suffix to variable names #1172 (#1324)
* Add Mock suffix to variable names #1172

* Add Impl suffix to variable names
2018-09-18 16:24:51 -03:00

24 lines
525 B
JavaScript

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