Changed before for beforeAll, refactored Bouncer tests. (#1094)
* Changed before for beforeAll, refactored Bouncer tests. * Fixed linter errors. * fix: updates for SignatureBouncer tests and voucher construction
This commit is contained in:
@ -7,7 +7,7 @@ const ForceEther = artifacts.require('ForceEther');
|
||||
contract('HasNoEther', function (accounts) {
|
||||
const amount = web3.toWei('1', 'ether');
|
||||
|
||||
it('should be constructorable', async function () {
|
||||
it('should be constructible', async function () {
|
||||
await HasNoEtherTest.new();
|
||||
});
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ contract('Whitelist', function (accounts) {
|
||||
|
||||
const whitelistedAddresses = [whitelistedAddress1, whitelistedAddress2];
|
||||
|
||||
before(async function () {
|
||||
beforeEach(async function () {
|
||||
this.mock = await WhitelistMock.new();
|
||||
this.role = await this.mock.ROLE_WHITELISTED();
|
||||
});
|
||||
|
||||
@ -19,7 +19,7 @@ contract('RBAC', function (accounts) {
|
||||
...advisors
|
||||
] = accounts;
|
||||
|
||||
before(async () => {
|
||||
beforeEach(async () => {
|
||||
mock = await RBACMock.new(advisors, { from: admin });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user