Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add test for finishMinting
  • Loading branch information
frangio committed Aug 14, 2017
commit 36452136f1ef26ecfeed3fa07404e3ec113c4489
8 changes: 7 additions & 1 deletion test/MintableToken.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const assertJump = require('./helpers/assertJump');
import expectThrow from './helpers/expectThrow';
var MintableToken = artifacts.require('../contracts/Tokens/MintableToken.sol');

contract('Mintable', function(accounts) {
Expand Down Expand Up @@ -37,4 +37,10 @@ contract('Mintable', function(accounts) {
assert(totalSupply, 100);
})

it('should fail to mint after call to finishMinting', async function () {
await token.finishMinting();
assert.equal(await token.mintingFinished(), true);
await expectThrow(token.mint(accounts[0], 100));
})

});