|
|
@ -1,6 +1,6 @@ |
|
|
|
import moment from 'moment' |
|
|
|
import moment from 'moment' |
|
|
|
import ether from './helpers/ether' |
|
|
|
import ether from './helpers/ether' |
|
|
|
import advanceToBlock from './helpers/advanceToBlock' |
|
|
|
import {advanceBlock} from './helpers/advanceToBlock' |
|
|
|
import increaseTime from './helpers/increaseTime' |
|
|
|
import increaseTime from './helpers/increaseTime' |
|
|
|
import latestTime from './helpers/latestTime' |
|
|
|
import latestTime from './helpers/latestTime' |
|
|
|
import EVMThrow from './helpers/EVMThrow' |
|
|
|
import EVMThrow from './helpers/EVMThrow' |
|
|
@ -22,7 +22,7 @@ contract('RefundableCrowdsale', function ([_, owner, wallet, investor]) { |
|
|
|
|
|
|
|
|
|
|
|
before(async function() { |
|
|
|
before(async function() { |
|
|
|
//Advance to the next block to correctly read time in the solidity "now" function interpreted by testrpc
|
|
|
|
//Advance to the next block to correctly read time in the solidity "now" function interpreted by testrpc
|
|
|
|
await advanceToBlock(web3.eth.getBlock('latest').number + 1) |
|
|
|
await advanceBlock() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
beforeEach(async function () { |
|
|
|
beforeEach(async function () { |
|
|
|