Escrow.test.js 456 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 [ owner, ...otherAccounts ] = accounts;
  7. beforeEach(async function () {
  8. this.escrow = await Escrow.new({ from: owner });
  9. });
  10. shouldBehaveLikeEscrow(owner, otherAccounts);
  11. });