SignerRole.test.js 480 B

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