Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: Francisco <fg@frang.io>
13 lines
449 B
JavaScript
13 lines
449 B
JavaScript
const { DEFAULT_ADMIN_ROLE, shouldBehaveLikeAccessControl } = require('./AccessControl.behavior.js');
|
|
|
|
const AccessControl = artifacts.require('$AccessControl');
|
|
|
|
contract('AccessControl', function (accounts) {
|
|
beforeEach(async function () {
|
|
this.accessControl = await AccessControl.new({ from: accounts[0] });
|
|
await this.accessControl.$_grantRole(DEFAULT_ADMIN_ROLE, accounts[0]);
|
|
});
|
|
|
|
shouldBehaveLikeAccessControl(...accounts);
|
|
});
|