Skip to content

Commit 6e752dc

Browse files
RenanSouza2Amxx
andauthored
Remove unused setBaseURI tests (#5456)
Co-authored-by: Hadrien Croubois <[email protected]>
1 parent 7ae222b commit 6e752dc

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

test/token/ERC721/ERC721.behavior.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const firstTokenId = 5042n;
1010
const secondTokenId = 79217n;
1111
const nonExistentTokenId = 13n;
1212
const fourthTokenId = 4n;
13-
const baseURI = 'https://api.example.com/v1/';
1413

1514
const RECEIVER_MAGIC_VALUE = '0x150b7a02';
1615

@@ -936,31 +935,6 @@ function shouldBehaveLikeERC721Metadata(name, symbol) {
936935
.to.be.revertedWithCustomError(this.token, 'ERC721NonexistentToken')
937936
.withArgs(nonExistentTokenId);
938937
});
939-
940-
describe('base URI', function () {
941-
beforeEach(function () {
942-
if (!this.token.interface.hasFunction('setBaseURI')) {
943-
this.skip();
944-
}
945-
});
946-
947-
it('base URI can be set', async function () {
948-
await this.token.setBaseURI(baseURI);
949-
expect(await this.token.baseURI()).to.equal(baseURI);
950-
});
951-
952-
it('base URI is added as a prefix to the token URI', async function () {
953-
await this.token.setBaseURI(baseURI);
954-
expect(await this.token.tokenURI(firstTokenId)).to.equal(baseURI + firstTokenId.toString());
955-
});
956-
957-
it('token URI can be changed by changing the base URI', async function () {
958-
await this.token.setBaseURI(baseURI);
959-
const newBaseURI = 'https://api.example.com/v2/';
960-
await this.token.setBaseURI(newBaseURI);
961-
expect(await this.token.tokenURI(firstTokenId)).to.equal(newBaseURI + firstTokenId.toString());
962-
});
963-
});
964938
});
965939
});
966940
}

0 commit comments

Comments
 (0)