2
2
'use strict'
3
3
4
4
const tests = require ( 'interface-ipfs-core' )
5
+ const isNode = require ( 'detect-node' )
5
6
const CommonFactory = require ( './utils/interface-common-factory' )
6
7
const IPFSApi = require ( '../src' )
7
8
@@ -18,7 +19,7 @@ describe('interface-ipfs-core tests', () => {
18
19
skip : [
19
20
// dag.tree
20
21
//
21
- // FIXME vmx 2018-02-22: Currently the tree API is not exposed in go-ipfs
22
+ // TODO vmx 2018-02-22: Currently the tree API is not exposed in go-ipfs
22
23
'tree' ,
23
24
// dag.get:
24
25
//
@@ -40,17 +41,14 @@ describe('interface-ipfs-core tests', () => {
40
41
tests . dht ( defaultCommonFactory , {
41
42
skip : [
42
43
// dht.findpeer
43
- //
44
44
// FIXME checking what is exactly go-ipfs returning
45
45
// https://github.com/ipfs/go-ipfs/issues/3862#issuecomment-294168090
46
46
'should fail to find other peer if peer does not exist' ,
47
47
// dht.findprovs
48
- //
49
48
// FIXME go-ipfs endpoint doesn't conform with the others
50
49
// https://github.com/ipfs/go-ipfs/issues/5047
51
50
'should provide from one node and find it through another node' ,
52
51
// dht.get
53
- //
54
52
// FIXME go-ipfs errors with Error: key was not found (type 6)
55
53
// https://github.com/ipfs/go-ipfs/issues/3862
56
54
'should get a value after it was put on another node'
@@ -59,14 +57,25 @@ describe('interface-ipfs-core tests', () => {
59
57
60
58
tests . files ( defaultCommonFactory , {
61
59
skip : [
60
+ // files.add
61
+ // FIXME https://github.com/ipfs/js-ipfs-api/issues/339
62
+ isNode ? null : 'should add a nested directory as array of tupples' ,
63
+ isNode ? null : 'should add a nested directory as array of tupples with progress' ,
64
+ // files.addPullStream
65
+ // FIXME https://github.com/ipfs/js-ipfs-api/issues/339
66
+ isNode ? null : 'should add pull stream of valid files and dirs' ,
67
+ // files.addReadableStream
68
+ // FIXME https://github.com/ipfs/js-ipfs-api/issues/339
69
+ isNode ? null : 'should add readable stream of valid files and dirs' ,
62
70
// files.catPullStream
63
- //
64
- // FIXME not implemented in go-ipfs yet
71
+ // TODO not implemented in go-ipfs yet
65
72
'should export a chunk of a file' ,
66
73
'should export a chunk of a file in a Pull Stream' ,
67
- 'should export a chunk of a file in a Readable Stream'
68
- ] ,
69
- only : true
74
+ 'should export a chunk of a file in a Readable Stream' ,
75
+ // files.get
76
+ // FIXME https://github.com/ipfs/js-ipfs-api/issues/339
77
+ isNode ? null : 'should get a directory'
78
+ ]
70
79
} )
71
80
72
81
tests . generic ( CommonFactory . create ( {
@@ -76,7 +85,19 @@ describe('interface-ipfs-core tests', () => {
76
85
77
86
tests . key ( defaultCommonFactory )
78
87
79
- tests . ls ( defaultCommonFactory )
88
+ tests . ls ( defaultCommonFactory , {
89
+ skip : [
90
+ // lsPullStream
91
+ // FIXME https://github.com/ipfs/js-ipfs-api/issues/339
92
+ isNode ? null : 'should pull stream ls with a base58 encoded CID' ,
93
+ // lsReadableStream
94
+ // FIXME https://github.com/ipfs/js-ipfs-api/issues/339
95
+ isNode ? null : 'should readable stream ls with a base58 encoded CID' ,
96
+ // ls
97
+ // FIXME https://github.com/ipfs/js-ipfs-api/issues/339
98
+ isNode ? null : 'should ls with a base58 encoded CID'
99
+ ]
100
+ } )
80
101
81
102
tests . object ( defaultCommonFactory )
82
103
0 commit comments