test burnable only by owner
This commit is contained in:
parent
971aa54950
commit
c93335deb1
|
@ -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 () => {
|
||||||
|
|
Loading…
Reference in New Issue