Fixed a broken payment test (+ another small fix) (#1318)

* Fixed a broken payment test

* In PR template, npm run lint:fix, not lint:all:fix

* In SplitPayment test, replaced an await-in-loop with Promise.all
This commit is contained in:
dwardu
2018-09-11 17:32:05 +02:00
committed by Nicolás Venturo
parent d8cbd5554f
commit b79196f911
2 changed files with 4 additions and 4 deletions

View File

@ -51,10 +51,10 @@ contract('SplitPayment', function ([_, owner, payee1, payee2, payee3, nonpayee1,
});
it('should have payees', async function () {
this.payees.forEach(async (payee, index) => {
(await this.payee(index)).should.be.equal(payee);
await Promise.all(this.payees.map(async (payee, index) => {
(await this.contract.payee(index)).should.be.equal(payee);
(await this.contract.released(payee)).should.be.bignumber.equal(0);
});
}));
});
it('should accept payments', async function () {