Escrow.test.js 332 B

12345678910111213
  1. const { shouldBehaveLikeEscrow } = require('./Escrow.behaviour');
  2. const Escrow = artifacts.require('Escrow');
  3. contract('Escrow', function (accounts) {
  4. const owner = accounts[0];
  5. beforeEach(async function () {
  6. this.escrow = await Escrow.new({ from: owner });
  7. });
  8. shouldBehaveLikeEscrow(owner, accounts.slice(1));
  9. });