Skip to content

Commit 6e5f8fb

Browse files
author
Brandon Iles
committed
lint
1 parent 9fa7fa9 commit 6e5f8fb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/Forth.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@ describe('Forth', () => {
106106
let timestamp = await forth.mintingAllowedAfter()
107107
await mineBlock(provider, timestamp.toString())
108108

109-
await expect(forth.connect(other1).mint(other1.address, 1)).to.be.revertedWith('Forth::mint: only the minter can mint')
110-
await expect(forth.mint('0x0000000000000000000000000000000000000000', 1)).to.be.revertedWith('Forth::mint: cannot transfer to the zero address')
109+
await expect(forth.connect(other1).mint(other1.address, 1)).to.be.revertedWith(
110+
'Forth::mint: only the minter can mint'
111+
)
112+
await expect(forth.mint('0x0000000000000000000000000000000000000000', 1)).to.be.revertedWith(
113+
'Forth::mint: cannot transfer to the zero address'
114+
)
111115

112116
// can mint up to 2%
113117
const mintCap = BigNumber.from(await forth.mintCap())
@@ -118,6 +122,8 @@ describe('Forth', () => {
118122
timestamp = await forth.mintingAllowedAfter()
119123
await mineBlock(provider, timestamp.toString())
120124
// cannot mint 2.01%
121-
await expect(forth.mint(wallet.address, supply.mul(mintCap.add(1)))).to.be.revertedWith('Forth::mint: exceeded mint cap')
125+
await expect(forth.mint(wallet.address, supply.mul(mintCap.add(1)))).to.be.revertedWith(
126+
'Forth::mint: exceeded mint cap'
127+
)
122128
})
123129
})

0 commit comments

Comments
 (0)