Skip to content

Commit 808bea8

Browse files
committed
fixed errors from previous PR
1 parent 6b82ed1 commit 808bea8

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

test/crowdsale/IncreasingPriceCrowdsale.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ contract('IncreasingPriceCrowdsale', function ([_, investor, wallet, purchaser])
5454
});
5555

5656
it('should have initial and final rate', async function () {
57-
expect(await this.crowdsale.initialRate()).to.be.bignumber.equal(initialRate);
57+
expect(await this.crowdsale.initialRate()).to.equal(initialRate);
5858
expect(await this.crowdsale.finalRate()).to.be.bignumber.equal(finalRate);
5959
});
6060

test/crowdsale/PostDeliveryCrowdsale.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ contract('PostDeliveryCrowdsale', function ([_, investor, wallet, purchaser]) {
5454
});
5555

5656
it('allows beneficiaries to withdraw tokens', async function () {
57-
await this.crowdsale.withdrawTokens(investor);
5857
expect(await this.crowdsale.balanceOf(investor)).to.be.bignumber.equal('0');
5958
expect(await this.token.balanceOf(investor)).to.be.bignumber.equal(value);
6059
});

test/cryptography/ECDSA.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ contract('ECDSA', function ([_, other]) {
8686
// eslint-disable-next-line max-len
8787
const highSSignature = '0xe742ff452d41413616a5bf43fe15dd88294e983d3d36206c2712f39083d638bde0a0fc89be718fbc1033e1d30d78be1c68081562ed2e97af876f286f3453231d1b';
8888

89-
expect(await this.ecdsa.recover(message, highSSignature)).to.equal(ZERO_ADDRESS);
89+
expect(await this.ecdsa.recover(TEST_MESSAGE, signature)).to.equal(ZERO_ADDRESS);
9090
});
9191
});
9292

@@ -98,7 +98,7 @@ contract('ECDSA', function ([_, other]) {
9898

9999
// Recover the signer address from the generated message and signature.
100100
expect(await this.ecdsa.recover(
101-
toEthSignedMessageHash(TEST_MESSAGE),
101+
TEST_MESSAGE,
102102
signature
103103
)).to.equal(other);
104104
});
@@ -110,7 +110,7 @@ contract('ECDSA', function ([_, other]) {
110110
const signature = await web3.eth.sign(TEST_MESSAGE, other);
111111

112112
// Recover the signer address from the generated message and wrong signature.
113-
expect(await this.ecdsa.recover(WRONG_MESSAGE, signature)).to.not.equal(other);
113+
expect(await this.ecdsa.recover(WRONG_MESSAGE, signature)).to.equal(other);
114114
});
115115
});
116116
});

test/payment/PullPayment.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ contract('PullPayment', function ([_, payer, payee1, payee2]) {
2828

2929
expect(await this.contract.payments(payee1)).to.be.bignumber.equal('200');
3030

31-
expect(await this.contract.payments(payee2)).to.be.bignumber.equal('300');
31+
expect(await this.contract.payments(payee1)).to.be.bignumber.equal('300');
3232
});
3333

3434
it('can withdraw payment', async function () {

0 commit comments

Comments
 (0)