From f5fd9ece88465a65c63672a852d2ac8649ccec7d Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Mon, 18 Sep 2023 18:29:14 -0300 Subject: [PATCH] ON-476: coverage 100% --- test/ERC7432.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/ERC7432.spec.ts b/test/ERC7432.spec.ts index a191677..8db91d2 100644 --- a/test/ERC7432.spec.ts +++ b/test/ERC7432.spec.ts @@ -471,6 +471,7 @@ describe('ERC7432', () => { ).to.be.revertedWith('ERC7432: sender must be approved') }) it('should revoke role from if operator is approved by grantee', async () => { + await ERC7432.connect(grantor).approveRole(AddressZero, tokenId, operator.address, false) await ERC7432.connect(userOne).approveRole(AddressZero, tokenId, operator.address, true) expect(await ERC7432.hasRole(PROPERTY_MANAGER, AddressZero, tokenId, grantor.address, userOne.address)).to.be.equal(true) await expect(