Skip to content

Commit

Permalink
Merge pull request #36 from membranefi/feat/add_mint_paused_test
Browse files Browse the repository at this point in the history
Add test for paused minting
  • Loading branch information
microbecode committed Dec 16, 2022
2 parents 909ca21 + c1888f8 commit c6bee2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/token.test.ts
Expand Up @@ -764,7 +764,14 @@ describe("Token", () => {
).to.revertedWith("Pausable: paused");
});

it("prevents minting", async () => {
it("prevents single minting", async () => {
await erc20.connect(pauser).pause();
await expect(
erc20.connect(minter).mint(user1.address, 2)
).to.revertedWith("Pausable: paused");
});

it("prevents batch minting", async () => {
await erc20.connect(pauser).pause();
await expect(singleMint(erc20, minter, user1.address, 1)).to.revertedWith(
"Pausable: paused"
Expand Down

0 comments on commit c6bee2f

Please sign in to comment.