Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
feat(generic): add tests to generic
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Aug 16, 2016
1 parent b64d8e8 commit 85c8c02
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 711 deletions.
4 changes: 2 additions & 2 deletions API/generic/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
generic API
Generic API
===========

#### `id`
Expand Down Expand Up @@ -32,7 +32,7 @@ ipfs.id(function (err, identity) {

##### `JavaScript` - ipfs.version([callback])

`callback` must follow `function (err, version) {}` signature, where `err` is an error if the operation was not successful. `version` is the version string of the implementation.
`callback` must follow `function (err, version) {}` signature, where `err` is an error if the operation was not successful. `version` is an object with the version of the implementation, the commit and the Repo.

If no `callback` is passed, a promise is returned.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "interface-ipfs-core",
"version": "0.9.0",
"description": "A test suite and interface you can use to implement a IPFS core interface.",
"main": "src/index.js",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"test": "exit(0)",
Expand Down Expand Up @@ -47,4 +47,4 @@
"greenkeeperio-bot <[email protected]>",
"nginnever <[email protected]>"
]
}
}
Loading

0 comments on commit 85c8c02

Please sign in to comment.