PauserRole.test.js 489 B

1234567891011
  1. const { shouldBehaveLikePublicRole } = require('../../behavior/access/roles/PublicRole.behavior');
  2. const PauserRoleMock = artifacts.require('PauserRoleMock');
  3. contract('PauserRole', function ([_, pauser, otherPauser, ...otherAccounts]) {
  4. beforeEach(async function () {
  5. this.contract = await PauserRoleMock.new({ from: pauser });
  6. await this.contract.addPauser(otherPauser, { from: pauser });
  7. });
  8. shouldBehaveLikePublicRole(pauser, otherPauser, otherAccounts, 'pauser');
  9. });