infrastructure-upgrade/lib/openzeppelin-contracts/test/payment/escrow/Escrow.test.js

17 lines
456 B
JavaScript
Raw Permalink Normal View History

2023-04-08 18:46:18 +00:00
const { accounts, contract } = require('@openzeppelin/test-environment');
require('@openzeppelin/test-helpers');
const { shouldBehaveLikeEscrow } = require('./Escrow.behavior');
const Escrow = contract.fromArtifact('Escrow');
describe('Escrow', function () {
const [ owner, ...otherAccounts ] = accounts;
beforeEach(async function () {
this.escrow = await Escrow.new({ from: owner });
});
shouldBehaveLikeEscrow(owner, otherAccounts);
});