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:
@ -1,12 +1,12 @@
|
||||
const { shouldBehaveLikeBurnableToken } = require('./BurnableToken.behaviour');
|
||||
const BurnableTokenMock = artifacts.require('BurnableTokenMock');
|
||||
|
||||
contract('BurnableToken', function ([owner]) {
|
||||
contract('BurnableToken', function ([_, owner]) {
|
||||
const initialBalance = 1000;
|
||||
|
||||
beforeEach(async function () {
|
||||
this.token = await BurnableTokenMock.new(owner, initialBalance);
|
||||
this.token = await BurnableTokenMock.new(owner, initialBalance, { from: owner });
|
||||
});
|
||||
|
||||
shouldBehaveLikeBurnableToken([owner], initialBalance);
|
||||
shouldBehaveLikeBurnableToken(owner, initialBalance);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user