Skip to content

Commit

Permalink
Merge pull request #75 from RootstockCollective/DAO-687
Browse files Browse the repository at this point in the history
DAO-687: change test description
  • Loading branch information
sleyter93 authored Sep 30, 2024
2 parents ca184d2 + f43c3ff commit 5e34e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Treasury.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('Treasury Contract', () => {
await expect(sentTx).to.emit(treasury, 'Withdrawn').withArgs(beneficiary, amount)
})

it('Only owner can withdraw RBTC to a beneficiary', async () => {
it('Only account with Executor Role can withdraw RBTC to a beneficiary', async () => {
const amount = parseEther('10')
const sentTx = treasury.connect(owner).withdraw(beneficiary, amount)
await expect(sentTx)
Expand Down Expand Up @@ -101,7 +101,7 @@ describe('Treasury Contract', () => {
await expect(sentTx).to.be.revertedWith('Insufficient ERC20 balance')
})

it('Only owner can withdraw ERC20 token to a beneficiary', async () => {
it('Only account with Executor Role can withdraw ERC20 token to a beneficiary', async () => {
const amount = parseEther('1')
const sentTx = treasury.connect(owner).withdrawERC20(rif, beneficiary, amount)
await expect(sentTx)
Expand Down

0 comments on commit 5e34e34

Please sign in to comment.