Replace chai.should with chai.expect (#1780)
* changed exxpect to expect wherever applicable * Merged with latest branch * Updated merkleTree helper to latest master branch * Made linting fixes * Fix for test build * updated for Coverage * Updated Address.test.js * Undo package-lock changes.
This commit is contained in:
committed by
Francisco Giordano
parent
852e11c2db
commit
489d2e85f1
@ -1,5 +1,7 @@
|
||||
const { balance, ether } = require('openzeppelin-test-helpers');
|
||||
|
||||
const { expect } = require('chai');
|
||||
|
||||
const PullPaymentMock = artifacts.require('PullPaymentMock');
|
||||
|
||||
contract('PullPayment', function ([_, payer, payee1, payee2]) {
|
||||
@ -11,22 +13,22 @@ contract('PullPayment', function ([_, payer, payee1, payee2]) {
|
||||
|
||||
it('can record an async payment correctly', async function () {
|
||||
await this.contract.callTransfer(payee1, 100, { from: payer });
|
||||
(await this.contract.payments(payee1)).should.be.bignumber.equal('100');
|
||||
expect(await this.contract.payments(payee1)).to.be.bignumber.equal('100');
|
||||
});
|
||||
|
||||
it('can add multiple balances on one account', async function () {
|
||||
await this.contract.callTransfer(payee1, 200, { from: payer });
|
||||
await this.contract.callTransfer(payee1, 300, { from: payer });
|
||||
(await this.contract.payments(payee1)).should.be.bignumber.equal('500');
|
||||
expect(await this.contract.payments(payee1)).to.be.bignumber.equal('500');
|
||||
});
|
||||
|
||||
it('can add balances on multiple accounts', async function () {
|
||||
await this.contract.callTransfer(payee1, 200, { from: payer });
|
||||
await this.contract.callTransfer(payee2, 300, { from: payer });
|
||||
|
||||
(await this.contract.payments(payee1)).should.be.bignumber.equal('200');
|
||||
expect(await this.contract.payments(payee1)).to.be.bignumber.equal('200');
|
||||
|
||||
(await this.contract.payments(payee2)).should.be.bignumber.equal('300');
|
||||
expect(await this.contract.payments(payee2)).to.be.bignumber.equal('300');
|
||||
});
|
||||
|
||||
it('can withdraw payment', async function () {
|
||||
|
||||
Reference in New Issue
Block a user