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:
@ -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));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user