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:
Nicolás Venturo
2018-07-26 13:25:10 -03:00
committed by GitHub
parent 6e19ed47be
commit 567b773242
31 changed files with 171 additions and 176 deletions

View File

@ -17,7 +17,7 @@ contract('AutoIncrementing', function ([_, owner]) {
context('custom key', async function () {
it('should return expected values', async function () {
for (let expectedId of EXPECTED) {
for (const expectedId of EXPECTED) {
await this.mock.doThing(KEY1, { from: owner });
const actualId = await this.mock.theId();
actualId.should.be.bignumber.eq(expectedId);
@ -27,7 +27,7 @@ contract('AutoIncrementing', function ([_, owner]) {
context('parallel keys', async function () {
it('should return expected values for each counter', async function () {
for (let expectedId of EXPECTED) {
for (const expectedId of EXPECTED) {
await this.mock.doThing(KEY1, { from: owner });
let actualId = await this.mock.theId();
actualId.should.be.bignumber.eq(expectedId);