Escrow.test.js 462 B

12345678910111213141516
  1. const { accounts, contract } = require('@openzeppelin/test-environment');
  2. require('@openzeppelin/test-helpers');
  3. const { shouldBehaveLikeEscrow } = require('./Escrow.behavior');
  4. const Escrow = contract.fromArtifact('Escrow');
  5. describe('Escrow', function () {
  6. const [ primary, ...otherAccounts ] = accounts;
  7. beforeEach(async function () {
  8. this.escrow = await Escrow.new({ from: primary });
  9. });
  10. shouldBehaveLikeEscrow(primary, otherAccounts);
  11. });