Skip to content

Commit

Permalink
Remove tokenByIndex test
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent committed Feb 15, 2022
1 parent 25d615e commit 584d073
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/extensions/ERC721ABurnable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,6 @@ describe('ERC721ABurnable', function () {
.to.be.equal(this.numTestTokens - 1);
});

it('adjusts token by index', async function () {
const n = await this.token.totalSupply();
for (let i = 0; i < this.burnedTokenId; ++i) {
expect(await this.token.tokenByIndex(i)).to.be.equal(i);
}
for (let i = this.burnedTokenId; i < n; ++i) {
expect(await this.token.tokenByIndex(i)).to.be.equal(i + 1);
}
await expect(this.token.tokenByIndex(n)).to.be.revertedWith(
'TokenIndexOutOfBounds'
);
});

describe('ownerships correctly set', async function () {
it('with token before previously burnt token transfered and burned', async function () {
const tokenIdToBurn = this.burnedTokenId - 1;
Expand Down

0 comments on commit 584d073

Please sign in to comment.