fix failing test

This commit is contained in:
Manuel Araoz 2015-03-11 14:50:20 -03:00
parent 6357fa3dc4
commit 3f65ab9abb
2 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,7 @@ describe('BitcoreHTTP v1 blocks routes', function() {
it('fails with to<from', function(cb) {
agent.get('/v1/blocks/?from=100000&to=99999')
.expect(422)
.expect('/v1/blocks/ "to" must be >= 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')

View File

@ -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"