Skip to content

Commit 34ad2bc

Browse files
committedApr 16, 2018
modify test file
1 parent 479ba18 commit 34ad2bc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎chapter6/test/test-task-master.js

+13
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ contract('TaskMaster', accounts => {
4747
LOG_RECIPIENT_REWARD,
4848
`${LOG_RECIPIENT_REWARD} was not not thrown!`
4949
);
50+
51+
const recipientFromLog = recipientRewardedLog.args.recipient;
52+
const rewardAmountFromLog = recipientRewardedLog.args.rewardAmount.toNumber();
53+
assert.strictEqual(
54+
recipientFromLog,
55+
recipient,
56+
`Recipient should be ${recipient}`
57+
);
58+
assert.strictEqual(
59+
rewardAmountFromLog,
60+
REWARD_WEI,
61+
`Reward amount should be ${REWARD_WEI}`
62+
);
5063
return instance.getBalance.call(owner, { from: owner } );
5164
})
5265
.then(actualOwnerBalance => {

0 commit comments

Comments
 (0)