mirror of openzeppelin-contracts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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);
|
|
|
|
});
|