ERC165.test.js 517 B

1234567891011121314151617181920212223
  1. const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
  2. const { assertRevert } = require('../helpers/assertRevert');
  3. const ERC165 = artifacts.require('ERC165Mock');
  4. require('chai')
  5. .should();
  6. contract('ERC165', function () {
  7. beforeEach(async function () {
  8. this.mock = await ERC165.new();
  9. });
  10. it('does not allow 0xffffffff', async function () {
  11. await assertRevert(
  12. this.mock.registerInterface(0xffffffff)
  13. );
  14. });
  15. shouldSupportInterfaces([
  16. 'ERC165',
  17. ]);
  18. });