Remove Babel (#1074)
* Test helpers no longer rely on Babel. * Behaviours are no longer imported. * Removed Babel dependency. * Fixed linter errors.
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
import ether from '../../helpers/ether';
|
||||
import shouldBehaveLikeMintableToken from './MintableToken.behaviour';
|
||||
import shouldBehaveLikeCappedToken from './CappedToken.behaviour';
|
||||
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 });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user