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

Commit 61667a4

Browse files
committed
feat: dag API basics (get, put, rm)
1 parent eab222e commit 61667a4

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

API/dag/README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,6 @@ If no `callback` is passed, a [promise][] is returned.
3232

3333
If no `callback` is passed, a [promise][] is returned.
3434

35-
#### `dag.resolve`
36-
37-
> Resolves an IPLD path
38-
39-
##### `Go` **WIP**
40-
41-
##### `JavaScript` - ipfs.dag.resolve(cid, path, callback)
42-
43-
- `cid` is a [CID][https://github.com/ipfs/js-cid] instance.
44-
- `path` is a String that represents a valid path to be resolved
45-
46-
`callback` must follow `function (err, value) {}` signature, where `err` is an error if the operation was not successful and `value` is the value it was retrieved.
47-
48-
If no `callback` is passed, a [promise][] is returned.
49-
5035
#### `dag.remove`
5136

5237
> Deletes an IPLD node

src/dag.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ const expect = require('chai').expect
77
const dagPB = require('ipld-dag-pb')
88
const DAGNode = dagPB.DAGNode
99
const dagCBOR = require('ipld-dag-pb')
10-
// const series = require('async/series')
1110

1211
module.exports = (common) => {
13-
describe.skip('.dag', () => {
12+
describe('.dag (basics)', () => {
1413
let ipfs
1514

1615
before(function (done) {
@@ -130,17 +129,6 @@ module.exports = (common) => {
130129
})
131130
})
132131

133-
describe('.resolve', () => {
134-
it.skip('dag-pb local scope', (done) => {})
135-
it.skip('dag-pb one level', (done) => {})
136-
it.skip('dag-pb two levels', (done) => {})
137-
it.skip('dag-cbor local scope', (done) => {})
138-
it.skip('dag-cbor one level', (done) => {})
139-
it.skip('dag-cbor two levels', (done) => {})
140-
it.skip('from dag-pb to dag-cbor', (done) => {})
141-
it.skip('from dag-cbor to dag-pb', (done) => {})
142-
})
143-
144132
describe('.rm', () => {
145133
let pbNode
146134

@@ -174,7 +162,6 @@ module.exports = (common) => {
174162
describe('promise API', () => {
175163
describe('.put', () => {})
176164
describe('.get', () => {})
177-
describe('.resolve', () => {})
178165
describe('.rm', () => {})
179166
})
180167
})

0 commit comments

Comments
 (0)