All tests now use account names, and dont use accounts[0] (except ERC… (#1137)

* All tests now use account names, and dont use accounts[0] (except ERC721)

* Added account names to some missing contracts.
This commit is contained in:
Nicolás Venturo
2018-08-02 16:55:31 -03:00
committed by GitHub
parent f49721576f
commit 4544df47da
41 changed files with 210 additions and 300 deletions

View File

@ -3,17 +3,14 @@ const { ethGetBalance } = require('../helpers/web3');
const TokenDestructible = artifacts.require('TokenDestructible');
const StandardTokenMock = artifacts.require('StandardTokenMock');
contract('TokenDestructible', function (accounts) {
contract('TokenDestructible', function ([_, owner]) {
let tokenDestructible;
let owner;
beforeEach(async function () {
tokenDestructible = await TokenDestructible.new({
from: accounts[0],
from: owner,
value: web3.toWei('10', 'ether'),
});
owner = await tokenDestructible.owner();
});
it('should send balance to owner after destruction', async function () {