Finalize test migration: remove legacy dependencies and test helpers (#4797)

This commit is contained in:
Hadrien Croubois
2023-12-26 23:46:06 +01:00
committed by GitHub
parent abcf9dd8b7
commit a72c9561b9
96 changed files with 951 additions and 6503 deletions

View File

@ -37,7 +37,7 @@ describe('ERC1155Burnable', function () {
it("unapproved accounts cannot burn the holder's tokens", async function () {
await expect(this.token.connect(this.other).burn(this.holder, ids[0], values[0] - 1n))
.to.be.revertedWithCustomError(this.token, 'ERC1155MissingApprovalForAll')
.withArgs(this.other.address, this.holder.address);
.withArgs(this.other, this.holder);
});
});
@ -60,7 +60,7 @@ describe('ERC1155Burnable', function () {
it("unapproved accounts cannot burn the holder's tokens", async function () {
await expect(this.token.connect(this.other).burnBatch(this.holder, ids, [values[0] - 1n, values[1] - 2n]))
.to.be.revertedWithCustomError(this.token, 'ERC1155MissingApprovalForAll')
.withArgs(this.other.address, this.holder.address);
.withArgs(this.other, this.holder);
});
});
});

View File

@ -8,7 +8,7 @@ async function fixture() {
return { token, holder, operator, receiver, other };
}
contract('ERC1155Pausable', function () {
describe('ERC1155Pausable', function () {
const firstTokenId = 37n;
const firstTokenValue = 42n;
const secondTokenId = 19842n;