CapperRole.test.js 490 B

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