Ownable.test.js 367 B

123456789101112
  1. require('openzeppelin-test-helpers');
  2. const { shouldBehaveLikeOwnable } = require('./Ownable.behavior');
  3. const Ownable = artifacts.require('OwnableMock');
  4. contract('Ownable', function ([_, owner, ...otherAccounts]) {
  5. beforeEach(async function () {
  6. this.ownable = await Ownable.new({ from: owner });
  7. });
  8. shouldBehaveLikeOwnable(owner, otherAccounts);
  9. });