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:
@ -6,18 +6,11 @@ const WhitelistMock = artifacts.require('WhitelistMock');
|
||||
require('chai')
|
||||
.should();
|
||||
|
||||
contract('Whitelist', function (accounts) {
|
||||
const [
|
||||
owner,
|
||||
whitelistedAddress1,
|
||||
whitelistedAddress2,
|
||||
anyone,
|
||||
] = accounts;
|
||||
|
||||
contract('Whitelist', function ([_, owner, whitelistedAddress1, whitelistedAddress2, anyone]) {
|
||||
const whitelistedAddresses = [whitelistedAddress1, whitelistedAddress2];
|
||||
|
||||
beforeEach(async function () {
|
||||
this.mock = await WhitelistMock.new();
|
||||
this.mock = await WhitelistMock.new({ from: owner });
|
||||
this.role = await this.mock.ROLE_WHITELISTED();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user