* added the RBACMintableToken * added MintedCrowdsale with RBACMintableToken test * added a mintable behaviour for tests * moved minting tests in behaviour * created a minted crowdsale behaviour to be tested with both mintable and rbacmintable token
13 lines
387 B
JavaScript
13 lines
387 B
JavaScript
import shouldBehaveLikeMintableToken from './MintableToken.behaviour';
|
|
const MintableToken = artifacts.require('MintableToken');
|
|
|
|
contract('MintableToken', function ([owner, anotherAccount]) {
|
|
const minter = owner;
|
|
|
|
beforeEach(async function () {
|
|
this.token = await MintableToken.new({ from: owner });
|
|
});
|
|
|
|
shouldBehaveLikeMintableToken([owner, anotherAccount, minter]);
|
|
});
|