Ownable.test.js 468 B

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