Skip to content

Commit

Permalink
🏀 missed a function under coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-lough committed Oct 11, 2017
1 parent 6774c19 commit 34cb699
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/lattoken_minter_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ contract("LATokenMinter", function(accounts) {
assert.equal(await minter.helper.call(), accounts[0]);
await assertFail(async () => { await minter.changeHelper(accounts[1], { from: accounts[1] }) } );
await minter.changeHelper(accounts[1]);
await assertFail(async () => { await minter.harvest() });
assert.equal(await minter.helper.call(), accounts[1]);
});

Expand Down Expand Up @@ -81,4 +82,12 @@ contract("LATokenMinter", function(accounts) {
});
});

it('test the fundteaminstant function', async () => {
assert.equal((await token.balanceOf.call(accounts[2])).toNumber(), 0);
await minter.changeTeamPoolInstant(accounts[2]);
await minter.fundTeamInstant();
assert.equal((await token.balanceOf.call(accounts[2])).toNumber(), 400000000000000);
await assertFail(async () => { await minter.fundTeamInstant() } );
});

});

0 comments on commit 34cb699

Please sign in to comment.