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:
Nicolás Venturo
2018-07-20 12:25:40 -03:00
committed by GitHub
parent ce0c3274ee
commit 67b67b791e
16 changed files with 338 additions and 310 deletions

View File

@ -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();
});

View File

@ -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();
});

View File

@ -19,7 +19,7 @@ contract('RBAC', function (accounts) {
...advisors
] = accounts;
before(async () => {
beforeEach(async () => {
mock = await RBACMock.new(advisors, { from: admin });
});