diff --git a/api/test/v1/blocks.js b/api/test/v1/blocks.js index 16ba48f0..2fc86286 100644 --- a/api/test/v1/blocks.js +++ b/api/test/v1/blocks.js @@ -76,7 +76,7 @@ describe('BitcoreHTTP v1 blocks routes', function() { it('fails with to= to "from"', cb); + .expect('/v1/blocks/ "to" must be >= "from"', cb); }); it('works with to/from parameters', function(cb) { agent.get('/v1/blocks/?from=100000&to=100001') diff --git a/package.json b/package.json index 32484510..62dc3953 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ ], "scripts": { "start": "node index.js", - "test": "gulp test" + "test": "./node_modules/.bin/mocha" }, "dependencies": { "async": "0.9.0", @@ -52,10 +52,13 @@ "body-parser": "^1.12.0", "bufferput": "bitpay/node-bufferput", "buffertools": "*", + "compression": "^1.4.1", "config": "^1.12.0", + "cors": "^2.5.3", "eventemitter2": "^0.4.14", "express": "4.11.1", "glob": "*", + "js-yaml": "^3.2.7", "levelup": "~0.19.0", "moment": "~2.5.0", "morgan": "^1.5.1", @@ -67,6 +70,7 @@ "bitcore-build": "bitpay/bitcore-build", "chai": "^2.1.1", "gulp": "^3.8.10", + "mocha": "^2.2.1", "should": "^5.1.0", "sinon": "^1.13.0", "supertest": "^0.15.0"