test burnable only by owner

This commit is contained in:
0xb337r007 2023-05-15 11:27:15 +02:00
parent 971aa54950
commit c93335deb1
1 changed files with 4 additions and 4 deletions

View File

@ -68,10 +68,10 @@ describe("CollectibleV1", function () {
}); });
it("normal user cannot burn", async () => { it("normal user cannot burn", async () => {
const addresses = accounts.map(a => a.address); const a = accounts[0];
for (let i = 0; i < addresses.length; i++) { await expect(token.connect(a).remoteBurn([0])).to.be.revertedWith(
expect(await token.balanceOf(addresses[i])).to.equal("1"); "Ownable: caller is not the owner"
} );
}); });
// it("fails with not enough allowance", async () => { // it("fails with not enough allowance", async () => {