From 3f65ab9abb732f541463baad8792c387e1593286 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Wed, 11 Mar 2015 14:50:20 -0300 Subject: [PATCH] fix failing test --- api/test/v1/blocks.js | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 8c282e55..65147fd3 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ ], "scripts": { "start": "node index.js", - "test": "mocha" + "test": "./node_modules/.bin/mocha" }, "dependencies": { "async": "0.9.0", @@ -67,6 +67,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"