SignerRole.test.js 590 B

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