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 a2623ba
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 710 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
"greenkeeperio-bot <[email protected]>",
"nginnever <[email protected]>"
]
}
}
Loading

0 comments on commit a2623ba

Please sign in to comment.