ERC165.test.js 450 B

123456789101112131415161718
  1. const { ethers } = require('hardhat');
  2. const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');
  3. const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
  4. async function fixture() {
  5. return {
  6. mock: await ethers.deployContract('$ERC165'),
  7. };
  8. }
  9. describe('ERC165', function () {
  10. beforeEach(async function () {
  11. Object.assign(this, await loadFixture(fixture));
  12. });
  13. shouldSupportInterfaces();
  14. });