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.
19 lines
821 B
19 lines
821 B
const { ether } = require('../../helpers/ether');
|
|
const { shouldBehaveLikeRBACMintableToken } = require('./RBACMintableToken.behavior');
|
|
const { shouldBehaveLikeERC20Mintable } = require('./ERC20Mintable.behavior');
|
|
const { shouldBehaveLikeERC20Capped } = require('./ERC20Capped.behavior');
|
|
|
|
const RBACCappedTokenMock = artifacts.require('RBACCappedTokenMock');
|
|
|
|
contract('RBACCappedToken', function ([_, owner, minter, ...otherAccounts]) {
|
|
const cap = ether(1000);
|
|
|
|
beforeEach(async function () {
|
|
this.token = await RBACCappedTokenMock.new(cap, { from: owner });
|
|
await this.token.addMinter(minter, { from: owner });
|
|
});
|
|
|
|
shouldBehaveLikeERC20Mintable(owner, minter, otherAccounts);
|
|
shouldBehaveLikeRBACMintableToken(owner, otherAccounts);
|
|
shouldBehaveLikeERC20Capped(minter, otherAccounts, cap);
|
|
});
|
|
|