Skip to content

Commit

Permalink
Migrate ERC165 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Dec 11, 2023
1 parent 6ba452d commit 5471acb
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 139 deletions.
11 changes: 9 additions & 2 deletions test/utils/introspection/ERC165.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
const { ethers } = require('hardhat');
const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');

const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');

const ERC165 = artifacts.require('$ERC165');
async function fixture() {
return {
mock: await ethers.deployContract('$ERC165'),
};
}

contract('ERC165', function () {
beforeEach(async function () {
this.mock = await ERC165.new();
Object.assign(this, await loadFixture(fixture));
});

shouldSupportInterfaces(['ERC165']);
Expand Down
Loading

0 comments on commit 5471acb

Please sign in to comment.