|
|
@ -1,6 +1,6 @@ |
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
|
|
const assertJump = require('./helpers/assertJump'); |
|
|
|
import expectThrow from './helpers/expectThrow'; |
|
|
|
var MintableToken = artifacts.require('../contracts/Tokens/MintableToken.sol'); |
|
|
|
var MintableToken = artifacts.require('../contracts/Tokens/MintableToken.sol'); |
|
|
|
|
|
|
|
|
|
|
|
contract('Mintable', function(accounts) { |
|
|
|
contract('Mintable', function(accounts) { |
|
|
@ -37,4 +37,10 @@ contract('Mintable', function(accounts) { |
|
|
|
assert(totalSupply, 100); |
|
|
|
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)); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|