RBACMintableToken.test.js 611 B

1234567891011121314
  1. const { shouldBehaveLikeRBACMintableToken } = require('./RBACMintableToken.behaviour');
  2. const { shouldBehaveLikeMintableToken } = require('./MintableToken.behaviour');
  3. const RBACMintableToken = artifacts.require('RBACMintableToken');
  4. contract('RBACMintableToken', function ([owner, anotherAccount, minter]) {
  5. beforeEach(async function () {
  6. this.token = await RBACMintableToken.new({ from: owner });
  7. await this.token.addMinter(minter, { from: owner });
  8. });
  9. shouldBehaveLikeRBACMintableToken([owner, anotherAccount, minter]);
  10. shouldBehaveLikeMintableToken([owner, anotherAccount, minter]);
  11. });