Prefer const in test files (#1117)
* Removed all instances of var. * Sorted eslintrc rules. * Made eslint rule severity explicit. * Now prefering const over let.
This commit is contained in:
@ -5,7 +5,7 @@ function shouldBehaveLikeCappedToken ([owner, anotherAccount, minter, cap]) {
|
||||
const from = minter;
|
||||
|
||||
it('should start with the correct cap', async function () {
|
||||
let _cap = await this.token.cap();
|
||||
const _cap = await this.token.cap();
|
||||
|
||||
assert(cap.eq(_cap));
|
||||
});
|
||||
|
||||
@ -2,7 +2,7 @@ const { ether } = require('../../helpers/ether');
|
||||
const { shouldBehaveLikeMintableToken } = require('./MintableToken.behaviour');
|
||||
const { shouldBehaveLikeCappedToken } = require('./CappedToken.behaviour');
|
||||
|
||||
var CappedToken = artifacts.require('CappedToken');
|
||||
const CappedToken = artifacts.require('CappedToken');
|
||||
|
||||
contract('Capped', function ([owner, anotherAccount]) {
|
||||
const _cap = ether(1000);
|
||||
|
||||
Reference in New Issue
Block a user