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

@ -14,16 +14,16 @@ contract('Destructible', function (accounts) {
});
it('should send balance to owner after destruction', async function () {
let initBalance = await ethGetBalance(this.owner);
const initBalance = await ethGetBalance(this.owner);
await this.destructible.destroy({ from: this.owner });
let newBalance = await ethGetBalance(this.owner);
const newBalance = await ethGetBalance(this.owner);
assert.isTrue(newBalance > initBalance);
});
it('should send balance to recepient after destruction', async function () {
let initBalance = await ethGetBalance(accounts[1]);
const initBalance = await ethGetBalance(accounts[1]);
await this.destructible.destroyAndSend(accounts[1], { from: this.owner });
let newBalance = await ethGetBalance(accounts[1]);
const newBalance = await ethGetBalance(accounts[1]);
assert.isTrue(newBalance.greaterThan(initBalance));
});
});