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:
Nicolás Venturo
2018-07-18 19:37:16 -03:00
committed by GitHub
parent 99e4b081dc
commit cea2a85a42
86 changed files with 308 additions and 252 deletions

View File

@ -1,4 +1,4 @@
import assertRevert from '../../helpers/assertRevert';
const { assertRevert } = require('../../helpers/assertRevert');
const BigNumber = web3.BigNumber;
@ -7,7 +7,7 @@ require('chai')
.use(require('chai-bignumber')(BigNumber))
.should();
export default function ([owner, anotherAccount, minter]) {
function shouldBehaveLikeMintableToken ([owner, anotherAccount, minter]) {
describe('as a basic mintable token', function () {
describe('after token creation', function () {
it('sender should be token owner', async function () {
@ -145,4 +145,8 @@ export default function ([owner, anotherAccount, minter]) {
});
});
});
}
module.exports = {
shouldBehaveLikeMintableToken,
};