Skip to content

Commit

Permalink
updating test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dtutila committed May 16, 2018
1 parent dcaff0c commit 1df0ba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/ContestPoolFactoryTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ contract('ContestPoolFactoryTest', function (accounts) {
assert.ok(contestPool);
const details = await contestPool.getContestDetails();

const maxBalanceContestPool = details[7];
const maxBalanceContestPool = details[8];
const contestNameContestPool = details[2];
const startDateContestPool = details[3];
const endDateContestPool = details[4];
Expand Down
8 changes: 5 additions & 3 deletions test/ContestPoolTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ contract('ContestPool', accounts => {
});

it(t('AnyUser', 'new', 'Should be initialized with correct values'), async () => {
const startTimeContract = await contestPoolInstance.startTime();
const endTimeContract = await contestPoolInstance.endTime();
const graceTimeContract = await contestPoolInstance.graceTime();

const details = await contestPoolInstance.getContestDetails();
const startTimeContract = details[3];
const endTimeContract = details[4];
const graceTimeContract = details[5];

assert.equal(startTime, startTimeContract, "Contest start time should be " + startTime);
assert.equal(endTime, endTimeContract, "Contest end time should be " + endTime);
Expand Down

0 comments on commit 1df0ba0

Please sign in to comment.