Skip to content

Commit c4af72d

Browse files
authored
Merge pull request #147 from watilde/feature/fix-test
Tweaks package.json and .gitignore
2 parents 1ad8dfa + 2bc94ba commit c4af72d

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ build/Release
2525
# Dependency directory
2626
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
2727
node_modules
28+
29+
# solc-js
30+
soljson.js
31+
test_DAO_Token_sol_Token.abi
32+
test_DAO_Token_sol_Token.bin
33+
test_DAO_Token_sol_TokenInterface.abi
34+
test_DAO_Token_sol_TokenInterface.bin
35+
test_DAO_Token_sol_tokenRecipient.abi
36+
test_DAO_Token_sol_tokenRecipient.bin

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ branches:
99
# Pull request automation is not constrained to this set of branches.
1010
only:
1111
- master
12-
script: npm run lint && npm run test
12+
script: npm test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"scripts": {
1010
"lint": "semistandard",
1111
"prepublish": "./downloadCurrentVersion.js && ./verifyVersion.js",
12+
"pretest": "npm run lint",
1213
"test": "tape ./test/index.js"
1314
},
1415
"repository": {
@@ -42,7 +43,7 @@
4243
"yargs": "^4.7.1"
4344
},
4445
"devDependencies": {
45-
"semistandard": "^8.0.0",
46+
"semistandard": "^11.0.0",
4647
"tape": "^4.5.1",
4748
"tape-spawn": "^1.4.2"
4849
},

wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function setupMethods (soljson) {
207207
var url = 'https://ethereum.github.io/solc-bin/bin/soljson-' + versionString + '.js';
208208
https.get(url, function (response) {
209209
if (response.statusCode !== 200) {
210-
cb('Error retrieving binary: ' + response.statusMessage);
210+
cb(new Error('Error retrieving binary: ' + response.statusMessage));
211211
} else {
212212
response.pipe(mem);
213213
response.on('end', function () {

0 commit comments

Comments
 (0)