RBACMintableToken.test.js 593 B

1234567891011121314
  1. import shouldBehaveLikeRBACMintableToken from './RBACMintableToken.behaviour';
  2. import shouldBehaveLikeMintableToken from './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. });