Merge pull request #36 from maraoz/run-all-tests
run all tests by using mocha
This commit is contained in:
commit
54a84b03da
@ -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')
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user