Files
openzeppelin-contracts/test/payment/Escrow.test.js
Nicolás Venturo 8fd072cf8e Escrows (#1014)
* Added basic Escrow

* PullPayment now uses an Escrow, removing all trust from the contract

* Abstracted the Escrow tests to a behaviour

* Added ConditionalEscrow

* Added RefundableEscrow.

* RefundableCrowdsale now uses a RefundEscrow, removed RefundVault.

* Renaming after code review.

* Added log test helper.

* Now allowing empty deposits and withdrawals.

* Style fixes.

* Minor review comments.

* Add Deposited and Withdrawn events, removed Refunded

* The base Escrow is now Ownable, users of it (owners) must provide methods to access it.
2018-07-03 18:54:55 -03:00

14 lines
323 B
JavaScript

import shouldBehaveLikeEscrow from './Escrow.behaviour';
const Escrow = artifacts.require('Escrow');
contract('Escrow', function (accounts) {
const owner = accounts[0];
beforeEach(async function () {
this.escrow = await Escrow.new({ from: owner });
});
shouldBehaveLikeEscrow(owner, accounts.slice(1));
});