Update openzeppelin-test-helpers dependency.

pull/1693/head
Nicolás Venturo 6 years ago
parent 308a4c9907
commit cf7375d6b8
  1. 69
      package-lock.json
  2. 2
      package.json
  3. 5
      test/examples/SampleCrowdsale.test.js
  4. 2
      truffle-config.js

69
package-lock.json generated

@ -4776,6 +4776,30 @@
"underscore": "1.8.3",
"web3-core-helpers": "1.0.0-beta.35",
"websocket": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible"
},
"dependencies": {
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"dev": true,
"optional": true,
"requires": {
"ms": "2.0.0"
}
},
"websocket": {
"version": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2",
"from": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",
"dev": true,
"optional": true,
"requires": {
"debug": "^2.2.0",
"nan": "^2.3.3",
"typedarray-to-buffer": "^3.1.2",
"yaeti": "^0.0.6"
}
}
}
},
"web3-shh": {
@ -6584,33 +6608,18 @@
}
},
"openzeppelin-test-helpers": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/openzeppelin-test-helpers/-/openzeppelin-test-helpers-0.2.0.tgz",
"integrity": "sha512-6tVzMy6t68dGcSOAwEPFYvJUqbek/aaJSjt+QjVshqV4yCOBR4f+CRzk1bjU/rh0aUp6Dkv9C5sHbr3dIp/ZlA==",
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/openzeppelin-test-helpers/-/openzeppelin-test-helpers-0.3.0.tgz",
"integrity": "sha512-+UC7/HHCzaBLbVy1Y/IlNFI3hqbiw5PuBGoQXbmduzh5QNrbiNbQOT1WlVTjoSDUCIDnHpFjnY5hJKF0kzitUg==",
"dev": true,
"requires": {
"ansi-colors": "^3.2.3",
"chai": "^4.2.0",
"chai-bn": "^0.1.1",
"ethjs-abi": "^0.2.1",
"semver": "^5.6.0",
"truffle-contract": "^4.0.8"
},
"dependencies": {
"chai": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz",
"integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==",
"dev": true,
"requires": {
"assertion-error": "^1.1.0",
"check-error": "^1.0.2",
"deep-eql": "^3.0.1",
"get-func-name": "^2.0.0",
"pathval": "^1.1.0",
"type-detect": "^4.0.5"
}
},
"semver": {
"version": "5.6.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz",
@ -10239,6 +10248,17 @@
"requires": {
"http-https": "^1.0.0"
}
},
"websocket": {
"version": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2",
"from": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",
"dev": true,
"requires": {
"debug": "^2.2.0",
"nan": "^2.3.3",
"typedarray-to-buffer": "^3.1.2",
"yaeti": "^0.0.6"
}
}
}
},
@ -10272,6 +10292,19 @@
"underscore": "1.8.3",
"web3-core-helpers": "1.0.0-beta.37",
"websocket": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible"
},
"dependencies": {
"websocket": {
"version": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2",
"from": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",
"dev": true,
"requires": {
"debug": "^2.2.0",
"nan": "^2.3.3",
"typedarray-to-buffer": "^3.1.2",
"yaeti": "^0.0.6"
}
}
}
},
"web3-shh": {

@ -53,7 +53,7 @@
"ethjs-abi": "^0.2.1",
"ganache-cli": "^6.4.1",
"ganache-cli-coverage": "github:Agusx1211/ganache-cli#c462b3fc48fe9b16756f7799885c0741114d9ed3",
"openzeppelin-test-helpers": "^0.2.0",
"openzeppelin-test-helpers": "^0.3.0",
"pify": "^4.0.1",
"solhint": "^1.5.0",
"solidity-coverage": "github:rotcivegaf/solidity-coverage#5875f5b7bc74d447f3312c9c0e9fc7814b482477",

@ -1,4 +1,4 @@
const { BN, balance, ether, should, shouldFail, time } = require('openzeppelin-test-helpers');
const { BN, balance, ether, shouldFail, time } = require('openzeppelin-test-helpers');
const SampleCrowdsale = artifacts.require('SampleCrowdsale');
const SampleCrowdsaleToken = artifacts.require('SampleCrowdsaleToken');
@ -29,9 +29,6 @@ contract('SampleCrowdsale', function ([_, deployer, owner, wallet, investor]) {
});
it('should create crowdsale with correct parameters', async function () {
should.exist(this.crowdsale);
should.exist(this.token);
(await this.crowdsale.openingTime()).should.be.bignumber.equal(this.openingTime);
(await this.crowdsale.closingTime()).should.be.bignumber.equal(this.closingTime);
(await this.crowdsale.rate()).should.be.bignumber.equal(RATE);

@ -1,3 +1,5 @@
require('chai/register-should');
module.exports = {
networks: {
development: {

Loading…
Cancel
Save