Use Prettier for JS files (#3913)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
@ -4,7 +4,7 @@ const { shouldBehaveLikeEscrow } = require('./Escrow.behavior');
|
||||
const ConditionalEscrowMock = artifacts.require('ConditionalEscrowMock');
|
||||
|
||||
contract('ConditionalEscrow', function (accounts) {
|
||||
const [ owner, payee, ...otherAccounts ] = accounts;
|
||||
const [owner, payee, ...otherAccounts] = accounts;
|
||||
|
||||
beforeEach(async function () {
|
||||
this.escrow = await ConditionalEscrowMock.new({ from: owner });
|
||||
@ -28,7 +28,8 @@ contract('ConditionalEscrow', function (accounts) {
|
||||
it('reverts on withdrawals', async function () {
|
||||
await this.escrow.deposit(payee, { from: owner, value: amount });
|
||||
|
||||
await expectRevert(this.escrow.withdraw(payee, { from: owner }),
|
||||
await expectRevert(
|
||||
this.escrow.withdraw(payee, { from: owner }),
|
||||
'ConditionalEscrow: payee is not allowed to withdraw',
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user