* Test helpers no longer rely on Babel. * Behaviours are no longer imported. * Removed Babel dependency. * Fixed linter errors.
18 lines
587 B
JavaScript
18 lines
587 B
JavaScript
const { ether } = require('../../helpers/ether');
|
|
const { shouldBehaveLikeMintableToken } = require('./MintableToken.behaviour');
|
|
const { shouldBehaveLikeCappedToken } = require('./CappedToken.behaviour');
|
|
|
|
var CappedToken = artifacts.require('CappedToken');
|
|
|
|
contract('Capped', function ([owner, anotherAccount]) {
|
|
const _cap = ether(1000);
|
|
|
|
beforeEach(async function () {
|
|
this.token = await CappedToken.new(_cap, { from: owner });
|
|
});
|
|
|
|
shouldBehaveLikeCappedToken([owner, anotherAccount, owner, _cap]);
|
|
|
|
shouldBehaveLikeMintableToken([owner, anotherAccount, owner]);
|
|
});
|