PauserRole.test.js 590 B

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