oracles-presale/mochawesome.html

1494 lines
90 KiB
HTML

<!doctype html>
<html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Mochawesome Report</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{
&quot;stats&quot;: {
&quot;suites&quot;: 3,
&quot;tests&quot;: 16,
&quot;passes&quot;: 16,
&quot;pending&quot;: 0,
&quot;failures&quot;: 0,
&quot;start&quot;: &quot;2017-11-10T21:21:29.936Z&quot;,
&quot;end&quot;: &quot;2017-11-10T21:21:32.250Z&quot;,
&quot;duration&quot;: 2314,
&quot;testsRegistered&quot;: 16,
&quot;passPercent&quot;: 100,
&quot;pendingPercent&quot;: 0,
&quot;other&quot;: 0,
&quot;hasOther&quot;: false,
&quot;skipped&quot;: 0,
&quot;hasSkipped&quot;: false,
&quot;passPercentClass&quot;: &quot;success&quot;,
&quot;pendingPercentClass&quot;: &quot;danger&quot;
},
&quot;suites&quot;: {
&quot;title&quot;: &quot;&quot;,
&quot;suites&quot;: [
{
&quot;title&quot;: &quot;PresaleOraclesMock&quot;,
&quot;suites&quot;: [],
&quot;tests&quot;: [],
&quot;pending&quot;: [],
&quot;root&quot;: false,
&quot;_timeout&quot;: 2000,
&quot;uuid&quot;: &quot;4ba38039-cac6-4bcd-9082-f8bd3386a73e&quot;,
&quot;beforeHooks&quot;: [
{
&quot;title&quot;: &quot;\&quot;before all\&quot; hook: prepare suite&quot;,
&quot;fullTitle&quot;: &quot;PresaleOraclesMock \&quot;before all\&quot; hook: prepare suite&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 0,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;series([\n runner.initialize.bind(runner),\n self.compileNewAbstractInterface.bind(this, runner),\n self.deployTestDependencies.bind(this, abstraction, dependency_paths, runner)\n], done);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;1439ceda-5e1f-44dc-b001-b267079af36f&quot;,
&quot;parentUUID&quot;: &quot;4ba38039-cac6-4bcd-9082-f8bd3386a73e&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;\&quot;before each\&quot; hook: before test&quot;,
&quot;fullTitle&quot;: &quot;PresaleOraclesMock \&quot;before each\&quot; hook: before test&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 0,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;runner.startTest(this, done);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;913ca647-de04-4f1a-bdf5-3ad031bddd6e&quot;,
&quot;parentUUID&quot;: &quot;4ba38039-cac6-4bcd-9082-f8bd3386a73e&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
}
],
&quot;afterHooks&quot;: [
{
&quot;title&quot;: &quot;\&quot;after each\&quot; hook: after test&quot;,
&quot;fullTitle&quot;: &quot;PresaleOraclesMock \&quot;after each\&quot; hook: after test&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 0,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;runner.endTest(this, done);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;c8be5941-20fb-49b0-b10b-487e61e36dd8&quot;,
&quot;parentUUID&quot;: &quot;4ba38039-cac6-4bcd-9082-f8bd3386a73e&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
}
],
&quot;fullFile&quot;: &quot;&quot;,
&quot;file&quot;: &quot;&quot;,
&quot;passes&quot;: [],
&quot;failures&quot;: [],
&quot;skipped&quot;: [],
&quot;hasBeforeHooks&quot;: true,
&quot;hasAfterHooks&quot;: true,
&quot;hasTests&quot;: false,
&quot;hasSuites&quot;: false,
&quot;totalTests&quot;: 0,
&quot;totalPasses&quot;: 0,
&quot;totalFailures&quot;: 0,
&quot;totalPending&quot;: 0,
&quot;totalSkipped&quot;: 0,
&quot;hasPasses&quot;: false,
&quot;hasFailures&quot;: false,
&quot;hasPending&quot;: false,
&quot;hasSkipped&quot;: false,
&quot;duration&quot;: 0,
&quot;rootEmpty&quot;: false
},
{
&quot;title&quot;: &quot;Contract: Presale&quot;,
&quot;suites&quot;: [
{
&quot;title&quot;: &quot;#initilize&quot;,
&quot;suites&quot;: [],
&quot;tests&quot;: [
{
&quot;title&quot;: &quot;rejects if not sent by owner&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize rejects if not sent by owner&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 34,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;7867c68a-ba9d-4364-9815-7cbc2bdbb84c&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;sets values&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize sets values&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 146,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n true.should.be.equal(\n await presaleContract.isInitialized()\n )\n PRESALE_START_DATE.should.be.bignumber.equal(\n await presaleContract.startTime()\n )\n PRESALE_END_DATE.should.be.bignumber.equal(\n await presaleContract.endTime()\n )\n ETHER.mul(40000).should.be.bignumber.equal(\n await presaleContract.cap()\n )\n accounts[1].should.be.equal(\n await presaleContract.vault()\n )\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.minimumContribution()\n )&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;f7f63960-1046-4479-a13a-779400841bd4&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot initialize twice&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize cannot initialize twice&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 78,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(!isInitialized);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;eb678ae6-c761-423e-b72f-c64a1d87c4fe&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;startTime cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize startTime cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 26,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_startTime != 0);\n await presaleContract.initialize(0, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;cb41c43d-23c5-4fda-8be7-9c3da4ee74c7&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;endTime cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize endTime cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 24,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_endTime != 0);\n await presaleContract.initialize(PRESALE_START_DATE, 0, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;c6c544cd-713e-43be-a57c-05050bd18a49&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;endTime cannot be less than startTime&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize endTime cannot be less than startTime&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 19,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_endTime &gt; _startTime);\n await presaleContract.initialize(PRESALE_END_DATE, PRESALE_START_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;0fdf76df-b21c-4d29-85f9-8d5dfe0127b0&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cap cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize cap cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 26,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_cap != 0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, 0, ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;5e03aa0d-340c-4771-b304-daf4b2f69dfd&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;vault cannot be 0x0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize vault cannot be 0x0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 21,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_vault != 0x0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), &#x27;0x0&#x27;, {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;9258f606-112e-4fa8-9510-1bf4a5789142&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;minimumContribution cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize minimumContribution cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 29,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_vault != 0x0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), 0, accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;eb1df940-ac5c-483a-826b-25e5664a08d5&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
}
],
&quot;pending&quot;: [],
&quot;root&quot;: false,
&quot;_timeout&quot;: 300000,
&quot;file&quot;: &quot;/test/presale.js&quot;,
&quot;uuid&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;beforeHooks&quot;: [
{
&quot;title&quot;: &quot;\&quot;before each\&quot; hook&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize \&quot;before each\&quot; hook&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 1,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;PRESALE_START_DATE = moment(&#x27;2017-12-11T16:00:00Z&#x27;).unix();\nPRESALE_END_DATE = moment(&#x27;2017-12-18T16:00:00Z&#x27;).unix();&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;ea0bb2ca-f787-4d00-89a2-4f065d787d56&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
}
],
&quot;afterHooks&quot;: [],
&quot;fullFile&quot;: &quot;/home/travis/build/rstormsf/oracles-presale/test/presale.js&quot;,
&quot;passes&quot;: [
{
&quot;title&quot;: &quot;rejects if not sent by owner&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize rejects if not sent by owner&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 34,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;7867c68a-ba9d-4364-9815-7cbc2bdbb84c&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;sets values&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize sets values&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 146,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n true.should.be.equal(\n await presaleContract.isInitialized()\n )\n PRESALE_START_DATE.should.be.bignumber.equal(\n await presaleContract.startTime()\n )\n PRESALE_END_DATE.should.be.bignumber.equal(\n await presaleContract.endTime()\n )\n ETHER.mul(40000).should.be.bignumber.equal(\n await presaleContract.cap()\n )\n accounts[1].should.be.equal(\n await presaleContract.vault()\n )\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.minimumContribution()\n )&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;f7f63960-1046-4479-a13a-779400841bd4&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot initialize twice&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize cannot initialize twice&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 78,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(!isInitialized);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;eb678ae6-c761-423e-b72f-c64a1d87c4fe&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;startTime cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize startTime cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 26,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_startTime != 0);\n await presaleContract.initialize(0, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;cb41c43d-23c5-4fda-8be7-9c3da4ee74c7&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;endTime cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize endTime cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 24,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_endTime != 0);\n await presaleContract.initialize(PRESALE_START_DATE, 0, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;c6c544cd-713e-43be-a57c-05050bd18a49&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;endTime cannot be less than startTime&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize endTime cannot be less than startTime&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 19,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_endTime &gt; _startTime);\n await presaleContract.initialize(PRESALE_END_DATE, PRESALE_START_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;0fdf76df-b21c-4d29-85f9-8d5dfe0127b0&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cap cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize cap cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 26,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_cap != 0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, 0, ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;5e03aa0d-340c-4771-b304-daf4b2f69dfd&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;vault cannot be 0x0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize vault cannot be 0x0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 21,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_vault != 0x0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), &#x27;0x0&#x27;, {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;9258f606-112e-4fa8-9510-1bf4a5789142&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;minimumContribution cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #initilize minimumContribution cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 29,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_vault != 0x0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), 0, accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;eb1df940-ac5c-483a-826b-25e5664a08d5&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
}
],
&quot;failures&quot;: [],
&quot;skipped&quot;: [],
&quot;hasBeforeHooks&quot;: true,
&quot;hasAfterHooks&quot;: false,
&quot;hasTests&quot;: true,
&quot;hasSuites&quot;: false,
&quot;totalTests&quot;: 9,
&quot;totalPasses&quot;: 9,
&quot;totalFailures&quot;: 0,
&quot;totalPending&quot;: 0,
&quot;totalSkipped&quot;: 0,
&quot;hasPasses&quot;: true,
&quot;hasFailures&quot;: false,
&quot;hasPending&quot;: false,
&quot;hasSkipped&quot;: false,
&quot;duration&quot;: 403,
&quot;rootEmpty&quot;: false
},
{
&quot;title&quot;: &quot;#buy&quot;,
&quot;suites&quot;: [],
&quot;tests&quot;: [
{
&quot;title&quot;: &quot;cannot buy if not value is 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy cannot buy if not value is 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 36,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(msg.value &gt; 0);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: 0})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;682d191b-a8f2-4c0a-8442-876765d65de5&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot buy if not value is less than minimum&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy cannot buy if not value is less than minimum&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 39,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;medium&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(msg.value &gt; 0);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(99)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;1284de67-1a66-4f2a-8bb6-e299d06b3730&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy if time is not within startTime&amp;endTime&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy can not buy if time is not within startTime&amp;endTime&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 82,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(now &gt;= startTime &amp;&amp; now &lt;= endTime);\n await presaleContract.setTime(PRESALE_START_DATE - 1);\n await presaleContract.sendTransaction({value: ETHER.mul(100)})\n .should.be.rejectedWith(REVERT_MSG);\n await presaleContract.setTime(PRESALE_END_DATE + 1);\n await presaleContract.sendTransaction({value: ETHER.mul(100)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;2094e757-c314-4df8-8de4-a22f319d0a32&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy more than cap&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy can not buy more than cap&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 40,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;medium&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // bool withinCap = totalInvestedInWei.add(msg.value) &lt;= cap;\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(40000).add(1)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;27ce0d8b-659c-4789-a6f5-7c2a00edfb85&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;happy path&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy happy path&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 580,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // investorBalances[investor] += msg.value;\n // totalInvestedInWei += msg.value;\n // forwardFunds(msg.value);\n const vault = accounts[1];\n const preVaultBalance = await web3.eth.getBalance(vault);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(100)});\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.investorBalances(accounts[0])\n )\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.totalInvestedInWei()\n )\n preVaultBalance.add(ETHER.mul(100)).should.be.bignumber.equal(\n await web3.eth.getBalance(vault)\n )\n await presaleContract.sendTransaction({value: ETHER.mul(2)});\n ETHER.mul(100).add(ETHER.mul(2)).should.be.bignumber.equal(\n await presaleContract.investorBalances(accounts[0])\n )\n ETHER.mul(100).add(ETHER.mul(2)).should.be.bignumber.equal(\n await presaleContract.totalInvestedInWei()\n )\n preVaultBalance.add(ETHER.mul(100).add(ETHER.mul(2))).should.be.bignumber.equal(\n await web3.eth.getBalance(vault)\n )\n await presaleContract.sendTransaction({value: ETHER.mul(40000-100-2).add(1)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;a028f084-2f7c-4086-8f2d-8d2e155e7f5f&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
}
],
&quot;pending&quot;: [],
&quot;root&quot;: false,
&quot;_timeout&quot;: 300000,
&quot;file&quot;: &quot;/test/presale.js&quot;,
&quot;uuid&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;beforeHooks&quot;: [
{
&quot;title&quot;: &quot;\&quot;before each\&quot; hook&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy \&quot;before each\&quot; hook&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 37,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n PRESALE_START_DATE = moment(&#x27;2017-12-11T16:00:00Z&#x27;).unix();\n PRESALE_END_DATE = moment(&#x27;2017-12-18T16:00:00Z&#x27;).unix();\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;bdbf477a-a07f-4400-8cfc-8d7d4212ec68&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
}
],
&quot;afterHooks&quot;: [],
&quot;fullFile&quot;: &quot;/home/travis/build/rstormsf/oracles-presale/test/presale.js&quot;,
&quot;passes&quot;: [
{
&quot;title&quot;: &quot;cannot buy if not value is 0&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy cannot buy if not value is 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 36,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(msg.value &gt; 0);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: 0})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;682d191b-a8f2-4c0a-8442-876765d65de5&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot buy if not value is less than minimum&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy cannot buy if not value is less than minimum&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 39,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;medium&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(msg.value &gt; 0);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(99)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;1284de67-1a66-4f2a-8bb6-e299d06b3730&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy if time is not within startTime&amp;endTime&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy can not buy if time is not within startTime&amp;endTime&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 82,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(now &gt;= startTime &amp;&amp; now &lt;= endTime);\n await presaleContract.setTime(PRESALE_START_DATE - 1);\n await presaleContract.sendTransaction({value: ETHER.mul(100)})\n .should.be.rejectedWith(REVERT_MSG);\n await presaleContract.setTime(PRESALE_END_DATE + 1);\n await presaleContract.sendTransaction({value: ETHER.mul(100)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;2094e757-c314-4df8-8de4-a22f319d0a32&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy more than cap&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy can not buy more than cap&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 40,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;medium&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // bool withinCap = totalInvestedInWei.add(msg.value) &lt;= cap;\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(40000).add(1)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;27ce0d8b-659c-4789-a6f5-7c2a00edfb85&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;happy path&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale #buy happy path&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 580,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // investorBalances[investor] += msg.value;\n // totalInvestedInWei += msg.value;\n // forwardFunds(msg.value);\n const vault = accounts[1];\n const preVaultBalance = await web3.eth.getBalance(vault);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(100)});\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.investorBalances(accounts[0])\n )\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.totalInvestedInWei()\n )\n preVaultBalance.add(ETHER.mul(100)).should.be.bignumber.equal(\n await web3.eth.getBalance(vault)\n )\n await presaleContract.sendTransaction({value: ETHER.mul(2)});\n ETHER.mul(100).add(ETHER.mul(2)).should.be.bignumber.equal(\n await presaleContract.investorBalances(accounts[0])\n )\n ETHER.mul(100).add(ETHER.mul(2)).should.be.bignumber.equal(\n await presaleContract.totalInvestedInWei()\n )\n preVaultBalance.add(ETHER.mul(100).add(ETHER.mul(2))).should.be.bignumber.equal(\n await web3.eth.getBalance(vault)\n )\n await presaleContract.sendTransaction({value: ETHER.mul(40000-100-2).add(1)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;a028f084-2f7c-4086-8f2d-8d2e155e7f5f&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
}
],
&quot;failures&quot;: [],
&quot;skipped&quot;: [],
&quot;hasBeforeHooks&quot;: true,
&quot;hasAfterHooks&quot;: false,
&quot;hasTests&quot;: true,
&quot;hasSuites&quot;: false,
&quot;totalTests&quot;: 5,
&quot;totalPasses&quot;: 5,
&quot;totalFailures&quot;: 0,
&quot;totalPending&quot;: 0,
&quot;totalSkipped&quot;: 0,
&quot;hasPasses&quot;: true,
&quot;hasFailures&quot;: false,
&quot;hasPending&quot;: false,
&quot;hasSkipped&quot;: false,
&quot;duration&quot;: 777,
&quot;rootEmpty&quot;: false
}
],
&quot;tests&quot;: [
{
&quot;title&quot;: &quot;constructor should set owner&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale constructor should set owner&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 28,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n accounts[0].should.be.equal(\n await presaleContract.owner()\n );&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;168e6c12-1e8a-4193-bf41-5634bb02d30d&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy if not initialized&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale can not buy if not initialized&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 36,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.sendTransaction({amount: ETHER})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;122f70d2-671d-483b-9475-cdab8a973d3f&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
}
],
&quot;pending&quot;: [],
&quot;root&quot;: false,
&quot;_timeout&quot;: 300000,
&quot;file&quot;: &quot;/test/presale.js&quot;,
&quot;uuid&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;beforeHooks&quot;: [
{
&quot;title&quot;: &quot;\&quot;before all\&quot; hook: prepare suite&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale \&quot;before all\&quot; hook: prepare suite&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 20,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;this.timeout(runner.BEFORE_TIMEOUT);\nrunner.initialize(done);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;4bf4f1d3-800c-4984-a66d-2030f7403bd0&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;\&quot;before each\&quot; hook: before test&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale \&quot;before each\&quot; hook: before test&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 3,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;runner.startTest(this, done);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;874d7712-89d0-4c05-913d-ca4b58d4557c&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;\&quot;before each\&quot; hook&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale \&quot;before each\&quot; hook&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 53,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n presaleContract = await PresaleOracles.new();&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;4999ab0a-1024-48f1-a6e8-a548de02e295&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
}
],
&quot;afterHooks&quot;: [
{
&quot;title&quot;: &quot;\&quot;after each\&quot; hook: after test&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale \&quot;after each\&quot; hook: after test&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 0,
&quot;pass&quot;: false,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;runner.endTest(this, done);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;52a6f97a-557a-438d-83e6-f9b2b314cee8&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: true,
&quot;skipped&quot;: false
}
],
&quot;fullFile&quot;: &quot;/home/travis/build/rstormsf/oracles-presale/test/presale.js&quot;,
&quot;passes&quot;: [
{
&quot;title&quot;: &quot;constructor should set owner&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale constructor should set owner&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 28,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n accounts[0].should.be.equal(\n await presaleContract.owner()\n );&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;168e6c12-1e8a-4193-bf41-5634bb02d30d&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy if not initialized&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale can not buy if not initialized&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 36,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.sendTransaction({amount: ETHER})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;122f70d2-671d-483b-9475-cdab8a973d3f&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
}
],
&quot;failures&quot;: [],
&quot;skipped&quot;: [],
&quot;hasBeforeHooks&quot;: true,
&quot;hasAfterHooks&quot;: true,
&quot;hasTests&quot;: true,
&quot;hasSuites&quot;: true,
&quot;totalTests&quot;: 2,
&quot;totalPasses&quot;: 2,
&quot;totalFailures&quot;: 0,
&quot;totalPending&quot;: 0,
&quot;totalSkipped&quot;: 0,
&quot;hasPasses&quot;: true,
&quot;hasFailures&quot;: false,
&quot;hasPending&quot;: false,
&quot;hasSkipped&quot;: false,
&quot;duration&quot;: 64,
&quot;rootEmpty&quot;: false
}
],
&quot;tests&quot;: [],
&quot;pending&quot;: [],
&quot;root&quot;: true,
&quot;_timeout&quot;: 2000,
&quot;uuid&quot;: &quot;fcd9c9a0-4184-4634-bb1f-74b3a6cb71df&quot;,
&quot;beforeHooks&quot;: [],
&quot;afterHooks&quot;: [],
&quot;fullFile&quot;: &quot;&quot;,
&quot;file&quot;: &quot;&quot;,
&quot;passes&quot;: [],
&quot;failures&quot;: [],
&quot;skipped&quot;: [],
&quot;hasBeforeHooks&quot;: false,
&quot;hasAfterHooks&quot;: false,
&quot;hasTests&quot;: false,
&quot;hasSuites&quot;: true,
&quot;totalTests&quot;: 0,
&quot;totalPasses&quot;: 0,
&quot;totalFailures&quot;: 0,
&quot;totalPending&quot;: 0,
&quot;totalSkipped&quot;: 0,
&quot;hasPasses&quot;: false,
&quot;hasFailures&quot;: false,
&quot;hasPending&quot;: false,
&quot;hasSkipped&quot;: false,
&quot;duration&quot;: 0,
&quot;rootEmpty&quot;: true
},
&quot;allTests&quot;: [
{
&quot;title&quot;: &quot;constructor should set owner&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale constructor should set owner&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 28,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n accounts[0].should.be.equal(\n await presaleContract.owner()\n );&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;168e6c12-1e8a-4193-bf41-5634bb02d30d&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy if not initialized&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale can not buy if not initialized&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 36,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.sendTransaction({amount: ETHER})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;122f70d2-671d-483b-9475-cdab8a973d3f&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;rejects if not sent by owner&quot;,
&quot;fullTitle&quot;: &quot;#initilize rejects if not sent by owner&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 34,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;7867c68a-ba9d-4364-9815-7cbc2bdbb84c&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;sets values&quot;,
&quot;fullTitle&quot;: &quot;#initilize sets values&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 146,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n true.should.be.equal(\n await presaleContract.isInitialized()\n )\n PRESALE_START_DATE.should.be.bignumber.equal(\n await presaleContract.startTime()\n )\n PRESALE_END_DATE.should.be.bignumber.equal(\n await presaleContract.endTime()\n )\n ETHER.mul(40000).should.be.bignumber.equal(\n await presaleContract.cap()\n )\n accounts[1].should.be.equal(\n await presaleContract.vault()\n )\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.minimumContribution()\n )&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;f7f63960-1046-4479-a13a-779400841bd4&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot initialize twice&quot;,
&quot;fullTitle&quot;: &quot;#initilize cannot initialize twice&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 78,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(!isInitialized);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;eb678ae6-c761-423e-b72f-c64a1d87c4fe&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;startTime cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;#initilize startTime cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 26,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_startTime != 0);\n await presaleContract.initialize(0, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;cb41c43d-23c5-4fda-8be7-9c3da4ee74c7&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;endTime cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;#initilize endTime cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 24,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_endTime != 0);\n await presaleContract.initialize(PRESALE_START_DATE, 0, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;c6c544cd-713e-43be-a57c-05050bd18a49&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;endTime cannot be less than startTime&quot;,
&quot;fullTitle&quot;: &quot;#initilize endTime cannot be less than startTime&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 19,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_endTime &gt; _startTime);\n await presaleContract.initialize(PRESALE_END_DATE, PRESALE_START_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;0fdf76df-b21c-4d29-85f9-8d5dfe0127b0&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cap cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;#initilize cap cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 26,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_cap != 0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, 0, ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;5e03aa0d-340c-4771-b304-daf4b2f69dfd&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;vault cannot be 0x0&quot;,
&quot;fullTitle&quot;: &quot;#initilize vault cannot be 0x0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 21,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_vault != 0x0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), &#x27;0x0&#x27;, {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;9258f606-112e-4fa8-9510-1bf4a5789142&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;minimumContribution cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;#initilize minimumContribution cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 29,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_vault != 0x0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), 0, accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;eb1df940-ac5c-483a-826b-25e5664a08d5&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot buy if not value is 0&quot;,
&quot;fullTitle&quot;: &quot;#buy cannot buy if not value is 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 36,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(msg.value &gt; 0);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: 0})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;682d191b-a8f2-4c0a-8442-876765d65de5&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot buy if not value is less than minimum&quot;,
&quot;fullTitle&quot;: &quot;#buy cannot buy if not value is less than minimum&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 39,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;medium&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(msg.value &gt; 0);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(99)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;1284de67-1a66-4f2a-8bb6-e299d06b3730&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy if time is not within startTime&amp;endTime&quot;,
&quot;fullTitle&quot;: &quot;#buy can not buy if time is not within startTime&amp;endTime&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 82,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(now &gt;= startTime &amp;&amp; now &lt;= endTime);\n await presaleContract.setTime(PRESALE_START_DATE - 1);\n await presaleContract.sendTransaction({value: ETHER.mul(100)})\n .should.be.rejectedWith(REVERT_MSG);\n await presaleContract.setTime(PRESALE_END_DATE + 1);\n await presaleContract.sendTransaction({value: ETHER.mul(100)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;2094e757-c314-4df8-8de4-a22f319d0a32&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy more than cap&quot;,
&quot;fullTitle&quot;: &quot;#buy can not buy more than cap&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 40,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;medium&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // bool withinCap = totalInvestedInWei.add(msg.value) &lt;= cap;\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(40000).add(1)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;27ce0d8b-659c-4789-a6f5-7c2a00edfb85&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;happy path&quot;,
&quot;fullTitle&quot;: &quot;#buy happy path&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 580,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // investorBalances[investor] += msg.value;\n // totalInvestedInWei += msg.value;\n // forwardFunds(msg.value);\n const vault = accounts[1];\n const preVaultBalance = await web3.eth.getBalance(vault);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(100)});\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.investorBalances(accounts[0])\n )\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.totalInvestedInWei()\n )\n preVaultBalance.add(ETHER.mul(100)).should.be.bignumber.equal(\n await web3.eth.getBalance(vault)\n )\n await presaleContract.sendTransaction({value: ETHER.mul(2)});\n ETHER.mul(100).add(ETHER.mul(2)).should.be.bignumber.equal(\n await presaleContract.investorBalances(accounts[0])\n )\n ETHER.mul(100).add(ETHER.mul(2)).should.be.bignumber.equal(\n await presaleContract.totalInvestedInWei()\n )\n preVaultBalance.add(ETHER.mul(100).add(ETHER.mul(2))).should.be.bignumber.equal(\n await web3.eth.getBalance(vault)\n )\n await presaleContract.sendTransaction({value: ETHER.mul(40000-100-2).add(1)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;a028f084-2f7c-4086-8f2d-8d2e155e7f5f&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
}
],
&quot;allPending&quot;: [],
&quot;allPasses&quot;: [
{
&quot;title&quot;: &quot;constructor should set owner&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale constructor should set owner&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 28,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n accounts[0].should.be.equal(\n await presaleContract.owner()\n );&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;168e6c12-1e8a-4193-bf41-5634bb02d30d&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy if not initialized&quot;,
&quot;fullTitle&quot;: &quot;Contract: Presale can not buy if not initialized&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 36,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.sendTransaction({amount: ETHER})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;122f70d2-671d-483b-9475-cdab8a973d3f&quot;,
&quot;parentUUID&quot;: &quot;0a2166d5-46d4-4d61-ab9d-cff540ced2a9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;rejects if not sent by owner&quot;,
&quot;fullTitle&quot;: &quot;#initilize rejects if not sent by owner&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 34,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;7867c68a-ba9d-4364-9815-7cbc2bdbb84c&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;sets values&quot;,
&quot;fullTitle&quot;: &quot;#initilize sets values&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 146,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n true.should.be.equal(\n await presaleContract.isInitialized()\n )\n PRESALE_START_DATE.should.be.bignumber.equal(\n await presaleContract.startTime()\n )\n PRESALE_END_DATE.should.be.bignumber.equal(\n await presaleContract.endTime()\n )\n ETHER.mul(40000).should.be.bignumber.equal(\n await presaleContract.cap()\n )\n accounts[1].should.be.equal(\n await presaleContract.vault()\n )\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.minimumContribution()\n )&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;f7f63960-1046-4479-a13a-779400841bd4&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot initialize twice&quot;,
&quot;fullTitle&quot;: &quot;#initilize cannot initialize twice&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 78,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(!isInitialized);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[0]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;eb678ae6-c761-423e-b72f-c64a1d87c4fe&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;startTime cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;#initilize startTime cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 26,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_startTime != 0);\n await presaleContract.initialize(0, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;cb41c43d-23c5-4fda-8be7-9c3da4ee74c7&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;endTime cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;#initilize endTime cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 24,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_endTime != 0);\n await presaleContract.initialize(PRESALE_START_DATE, 0, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;c6c544cd-713e-43be-a57c-05050bd18a49&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;endTime cannot be less than startTime&quot;,
&quot;fullTitle&quot;: &quot;#initilize endTime cannot be less than startTime&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 19,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_endTime &gt; _startTime);\n await presaleContract.initialize(PRESALE_END_DATE, PRESALE_START_DATE, ETHER.mul(40000), ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;0fdf76df-b21c-4d29-85f9-8d5dfe0127b0&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cap cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;#initilize cap cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 26,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_cap != 0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, 0, ETHER.mul(100), accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;5e03aa0d-340c-4771-b304-daf4b2f69dfd&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;vault cannot be 0x0&quot;,
&quot;fullTitle&quot;: &quot;#initilize vault cannot be 0x0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 21,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_vault != 0x0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), ETHER.mul(100), &#x27;0x0&#x27;, {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;9258f606-112e-4fa8-9510-1bf4a5789142&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;minimumContribution cannot be 0&quot;,
&quot;fullTitle&quot;: &quot;#initilize minimumContribution cannot be 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 29,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(_vault != 0x0);\n await presaleContract.initialize(PRESALE_START_DATE, PRESALE_END_DATE, ETHER.mul(40000), 0, accounts[1], {from: accounts[1]})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;eb1df940-ac5c-483a-826b-25e5664a08d5&quot;,
&quot;parentUUID&quot;: &quot;9e97f0b6-5320-4a1d-a3e0-c594e35f84e9&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot buy if not value is 0&quot;,
&quot;fullTitle&quot;: &quot;#buy cannot buy if not value is 0&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 36,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;fast&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(msg.value &gt; 0);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: 0})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;682d191b-a8f2-4c0a-8442-876765d65de5&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;cannot buy if not value is less than minimum&quot;,
&quot;fullTitle&quot;: &quot;#buy cannot buy if not value is less than minimum&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 39,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;medium&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(msg.value &gt; 0);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(99)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;1284de67-1a66-4f2a-8bb6-e299d06b3730&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy if time is not within startTime&amp;endTime&quot;,
&quot;fullTitle&quot;: &quot;#buy can not buy if time is not within startTime&amp;endTime&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 82,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // require(now &gt;= startTime &amp;&amp; now &lt;= endTime);\n await presaleContract.setTime(PRESALE_START_DATE - 1);\n await presaleContract.sendTransaction({value: ETHER.mul(100)})\n .should.be.rejectedWith(REVERT_MSG);\n await presaleContract.setTime(PRESALE_END_DATE + 1);\n await presaleContract.sendTransaction({value: ETHER.mul(100)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;2094e757-c314-4df8-8de4-a22f319d0a32&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;can not buy more than cap&quot;,
&quot;fullTitle&quot;: &quot;#buy can not buy more than cap&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 40,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;medium&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // bool withinCap = totalInvestedInWei.add(msg.value) &lt;= cap;\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(40000).add(1)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;27ce0d8b-659c-4789-a6f5-7c2a00edfb85&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
},
{
&quot;title&quot;: &quot;happy path&quot;,
&quot;fullTitle&quot;: &quot;#buy happy path&quot;,
&quot;timedOut&quot;: false,
&quot;duration&quot;: 580,
&quot;state&quot;: &quot;passed&quot;,
&quot;speed&quot;: &quot;slow&quot;,
&quot;pass&quot;: true,
&quot;fail&quot;: false,
&quot;pending&quot;: false,
&quot;code&quot;: &quot;async \n // investorBalances[investor] += msg.value;\n // totalInvestedInWei += msg.value;\n // forwardFunds(msg.value);\n const vault = accounts[1];\n const preVaultBalance = await web3.eth.getBalance(vault);\n await presaleContract.setTime(PRESALE_START_DATE);\n await presaleContract.sendTransaction({value: ETHER.mul(100)});\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.investorBalances(accounts[0])\n )\n ETHER.mul(100).should.be.bignumber.equal(\n await presaleContract.totalInvestedInWei()\n )\n preVaultBalance.add(ETHER.mul(100)).should.be.bignumber.equal(\n await web3.eth.getBalance(vault)\n )\n await presaleContract.sendTransaction({value: ETHER.mul(2)});\n ETHER.mul(100).add(ETHER.mul(2)).should.be.bignumber.equal(\n await presaleContract.investorBalances(accounts[0])\n )\n ETHER.mul(100).add(ETHER.mul(2)).should.be.bignumber.equal(\n await presaleContract.totalInvestedInWei()\n )\n preVaultBalance.add(ETHER.mul(100).add(ETHER.mul(2))).should.be.bignumber.equal(\n await web3.eth.getBalance(vault)\n )\n await presaleContract.sendTransaction({value: ETHER.mul(40000-100-2).add(1)})\n .should.be.rejectedWith(REVERT_MSG);&quot;,
&quot;err&quot;: {},
&quot;isRoot&quot;: false,
&quot;uuid&quot;: &quot;a028f084-2f7c-4086-8f2d-8d2e155e7f5f&quot;,
&quot;parentUUID&quot;: &quot;a46becbb-5ad3-4f4d-8ff4-b3b9b960d4c5&quot;,
&quot;isHook&quot;: false,
&quot;skipped&quot;: false
}
],
&quot;allFailures&quot;: [],
&quot;copyrightYear&quot;: 2017
}" data-config="{&quot;reportDir&quot;:&quot;mochawesome-report&quot;,&quot;reportTitle&quot;:&quot;oracles-presale&quot;,&quot;reportPageTitle&quot;:&quot;Mochawesome Report&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;charts&quot;:true,&quot;enableCharts&quot;:true,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:true,&quot;timestamp&quot;:false,&quot;ts&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;dev&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveJson&quot;:true,&quot;jsonFile&quot;:&quot;/home/travis/build/rstormsf/oracles-presale/mochawesome-report/mochawesome.json&quot;,&quot;htmlFile&quot;:&quot;/home/travis/build/rstormsf/oracles-presale/mochawesome-report/mochawesome.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>