const { time } = require('@openzeppelin/test-helpers'); const { shouldBehaveLikeAccessControl, shouldBehaveLikeAccessControlDefaultAdminRules, } = require('./AccessControl.behavior.js'); const AccessControlDefaultAdminRules = artifacts.require('$AccessControlDefaultAdminRules'); contract('AccessControlDefaultAdminRules', function (accounts) { const delay = web3.utils.toBN(time.duration.days(10)); beforeEach(async function () { this.accessControl = await AccessControlDefaultAdminRules.new(delay, accounts[0], { from: accounts[0] }); }); shouldBehaveLikeAccessControl('AccessControl', ...accounts); shouldBehaveLikeAccessControlDefaultAdminRules('AccessControl', delay, ...accounts); });