RBACMintableToken.test.js 600 B

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