MinterRole.test.js 590 B

123456789101112131415
  1. const { accounts, contract } = require('@openzeppelin/test-environment');
  2. const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
  3. const MinterRoleMock = contract.fromArtifact('MinterRoleMock');
  4. describe('MinterRole', function () {
  5. const [ minter, otherMinter, ...otherAccounts ] = accounts;
  6. beforeEach(async function () {
  7. this.contract = await MinterRoleMock.new({ from: minter });
  8. await this.contract.addMinter(otherMinter, { from: minter });
  9. });
  10. shouldBehaveLikePublicRole(minter, otherMinter, otherAccounts, 'minter');
  11. });