Skip to content

Commit

Permalink
test: add more test to pass coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
YamenMerhi committed Sep 26, 2023
1 parent cc252c4 commit 1eeaf98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions implementations/test/ERC725.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
// types
import { ERC725, ERC725__factory, ERC725Init__factory } from '../types';

import { INTERFACE_ID } from '../constants';

import { deployProxy } from './fixtures';

type ERC725DeployParams = {
Expand Down Expand Up @@ -99,6 +101,10 @@ describe('ERC725', () => {
context = await buildTestContext();
});

it('should have registered the ERC725X interface', async () => {
expect(await context.erc725.supportsInterface(INTERFACE_ID.ERC725X));
});

it('should revert when initializing with address(0) as owner', async () => {
await expect(
context.erc725['initialize(address)'](ethers.constants.AddressZero),
Expand Down

0 comments on commit 1eeaf98

Please sign in to comment.