CapperRole.test.js 590 B

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