fix failing test
This commit is contained in:
parent
6357fa3dc4
commit
3f65ab9abb
@ -76,7 +76,7 @@ describe('BitcoreHTTP v1 blocks routes', function() {
|
|||||||
it('fails with to<from', function(cb) {
|
it('fails with to<from', function(cb) {
|
||||||
agent.get('/v1/blocks/?from=100000&to=99999')
|
agent.get('/v1/blocks/?from=100000&to=99999')
|
||||||
.expect(422)
|
.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) {
|
it('works with to/from parameters', function(cb) {
|
||||||
agent.get('/v1/blocks/?from=100000&to=100001')
|
agent.get('/v1/blocks/?from=100000&to=100001')
|
||||||
|
|||||||
@ -41,7 +41,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js",
|
"start": "node index.js",
|
||||||
"test": "mocha"
|
"test": "./node_modules/.bin/mocha"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "0.9.0",
|
"async": "0.9.0",
|
||||||
@ -67,6 +67,7 @@
|
|||||||
"bitcore-build": "bitpay/bitcore-build",
|
"bitcore-build": "bitpay/bitcore-build",
|
||||||
"chai": "^2.1.1",
|
"chai": "^2.1.1",
|
||||||
"gulp": "^3.8.10",
|
"gulp": "^3.8.10",
|
||||||
|
"mocha": "^2.2.1",
|
||||||
"should": "^5.1.0",
|
"should": "^5.1.0",
|
||||||
"sinon": "^1.13.0",
|
"sinon": "^1.13.0",
|
||||||
"supertest": "^0.15.0"
|
"supertest": "^0.15.0"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user