You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
713 B
18 lines
713 B
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);
|
|
});
|
|
|