Files
openzeppelin-contracts/test/token/ERC20/RBACMintableToken.test.js
2018-08-03 14:41:54 -03:00

15 lines
600 B
JavaScript

const { shouldBehaveLikeRBACMintableToken } = require('./RBACMintableToken.behavior');
const { shouldBehaveLikeMintableToken } = require('./MintableToken.behavior');
const RBACMintableToken = artifacts.require('RBACMintableToken');
contract('RBACMintableToken', function ([_, owner, minter, ...otherAccounts]) {
beforeEach(async function () {
this.token = await RBACMintableToken.new({ from: owner });
await this.token.addMinter(minter, { from: owner });
});
shouldBehaveLikeRBACMintableToken(owner, otherAccounts);
shouldBehaveLikeMintableToken(owner, minter, otherAccounts);
});