Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
novaknole committed Oct 7, 2024
1 parent cd22d48 commit 0bb03e1
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions contracts/test/plugin/extensions/metadata.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
import {
DAOMock,
DAOMock__factory,
IProposal__factory,
ProposalMock,
ProposalUpgradeableMock,
ProposalMock__factory,
ProposalUpgradeableMock__factory,
MetadataContractMock__factory,
MetadataContractUpgradeableMock__factory,
MetadataContractMock,
MetadataContractUpgradeableMock,
} from '../../../typechain';
import {MetadataContractUpgradeableInterface} from '../../../typechain/src/plugin/extensions/metadata/MetadataContractUpgradeable';
import {erc165ComplianceTests} from '../../helpers';
import {getInterfaceId} from '@aragon/osx-commons-sdk';
import {IProposal__factory as IProposal_V1_0_0__factory} from '@aragon/osx-ethers-v1.0.0';
import {loadFixture} from '@nomicfoundation/hardhat-network-helpers';
import {expect} from 'chai';
import {ethers} from 'hardhat';

describe.only('MetadataContract', async () => {
proposalBaseTests(metadataFixture);
describe('MetadataContract', async () => {
metadataContractBaseTests(metadataFixture);
});

describe('MetadataContractUpgradeable', async () => {
proposalBaseTests(metadataUpgradeableFixture);
metadataContractBaseTests(metadataUpgradeableFixture);
});

// Contains tests for functionality common for `metadataMock` and `ProposalUpgradeableMock` to avoid duplication.
function proposalBaseTests(fixture: () => Promise<FixtureResult>) {
// Contains tests for functionality common for `MetadataContractMock` and `MetadataContractMockUpgradeable` to avoid duplication.
function metadataContractBaseTests(fixture: () => Promise<FixtureResult>) {
describe('ERC-165', async () => {
it('supports the `ERC-165` standard', async () => {
const {metadataMock} = await loadFixture(fixture);
Expand Down

0 comments on commit 0bb03e1

Please sign in to comment.