MinterRole.test.js 490 B

1234567891011
  1. const { shouldBehaveLikePublicRole } = require('../../behaviors/access/roles/PublicRole.behavior');
  2. const MinterRoleMock = artifacts.require('MinterRoleMock');
  3. contract('MinterRole', function ([_, minter, otherMinter, ...otherAccounts]) {
  4. beforeEach(async function () {
  5. this.contract = await MinterRoleMock.new({ from: minter });
  6. await this.contract.addMinter(otherMinter, { from: minter });
  7. });
  8. shouldBehaveLikePublicRole(minter, otherMinter, otherAccounts, 'minter');
  9. });