Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit f86cb1b

Browse files
committedJan 7, 2016
add tests
1 parent fa727a8 commit f86cb1b

File tree

45 files changed

+175
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+175
-113
lines changed
 

‎package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"lint": "standard",
1111
"coverage": "istanbul cover --print both -- _mocha tests/*-test.js",
12-
"test": "mocha tests/*-test.js"
12+
"test": "mocha tests/test-*/test-*.js"
1313
},
1414
"pre-commit": [
1515
"lint"
@@ -29,20 +29,18 @@
2929
"homepage": "https://github.com/ipfs/js-ipfs#readme",
3030
"devDependencies": {
3131
"chai": "^3.4.1",
32-
"ipfsd-ctl": "^0.6.1",
3332
"istanbul": "^0.4.1",
3433
"mocha": "^2.3.4",
3534
"ncp": "^2.0.0",
35+
"nexpect": "^0.5.0",
3636
"pre-commit": "^1.1.2",
3737
"rimraf": "^2.4.4",
3838
"standard": "^5.3.1"
3939
},
4040
"dependencies": {
41-
"hapi": "^11.1.4",
42-
"ipfs-api": "^2.7.0",
43-
"ipfs-repo": "^0.1.0",
44-
"peer-id": "^0.4.0",
45-
"peer-info": "^0.4.0",
41+
"debug": "^2.2.0",
42+
"hapi": "^12.0.0",
43+
"ipfs-repo": "^0.2.2",
4644
"ronin": "^0.3.11"
4745
}
4846
}

‎src/cli/commands/daemon.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
var Command = require('ronin').Command
2+
var httpAPI = require('../../http-api')
23

34
module.exports = Command.extend({
4-
desc: '',
5+
desc: 'Start a long-running daemon process',
56

6-
run: function (name) {}
7+
run: function (name) {
8+
httpAPI.start()
9+
// start API, using core
10+
//
11+
}
712
})

0 commit comments

Comments
 (0)
This repository has been archived.