* Test helpers no longer rely on Babel. * Behaviours are no longer imported. * Removed Babel dependency. * Fixed linter errors.
14 lines
332 B
JavaScript
14 lines
332 B
JavaScript
const { shouldBehaveLikeEscrow } = require('./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));
|
|
});
|