Skip to content

Commit

Permalink
Add branch coverage for _packedOwnershipOf (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahbanavi authored Jan 12, 2023
1 parent 65f875a commit eb4fad6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/ERC721A.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ const createTestSuite = ({ contract, constructorArgs }) =>

it('reverts for an invalid token', async function () {
await expect(this.erc721a.ownerOf(10)).to.be.revertedWith('OwnerQueryForNonexistentToken');

if (this.startTokenId > 0) {
await expect(this.erc721a.ownerOf(0)).to.be.revertedWith('OwnerQueryForNonexistentToken');
}
});
});

Expand Down

0 comments on commit eb4fad6

Please sign in to comment.