Commit b79196f9 by dwardu Committed by Nicolás Venturo

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
parent d8cbd555
...@@ -14,4 +14,4 @@ Fixes # ...@@ -14,4 +14,4 @@ Fixes #
- [ ] 📘 I've reviewed the [OpenZeppelin Contributor Guidelines](../blob/master/CONTRIBUTING.md) - [ ] 📘 I've reviewed the [OpenZeppelin Contributor Guidelines](../blob/master/CONTRIBUTING.md)
- [ ] ✅ I've added tests where applicable to test my new functionality. - [ ] ✅ I've added tests where applicable to test my new functionality.
- [ ] 📖 I've made sure that my contracts are well-documented. - [ ] 📖 I've made sure that my contracts are well-documented.
- [ ] 🎨 I've run the JS/Solidity linters and fixed any issues (`npm run lint:all:fix`). - [ ] 🎨 I've run the JS/Solidity linters and fixed any issues (`npm run lint:fix`).
...@@ -51,10 +51,10 @@ contract('SplitPayment', function ([_, owner, payee1, payee2, payee3, nonpayee1, ...@@ -51,10 +51,10 @@ contract('SplitPayment', function ([_, owner, payee1, payee2, payee3, nonpayee1,
}); });
it('should have payees', async function () { it('should have payees', async function () {
this.payees.forEach(async (payee, index) => { await Promise.all(this.payees.map(async (payee, index) => {
(await this.payee(index)).should.be.equal(payee); (await this.contract.payee(index)).should.be.equal(payee);
(await this.contract.released(payee)).should.be.bignumber.equal(0); (await this.contract.released(payee)).should.be.bignumber.equal(0);
}); }));
}); });
it('should accept payments', async function () { it('should accept payments', async function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment