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

Commit 6f711b9

Browse files
committed
fix: adds skips for key and miscellaneous
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
1 parent f325e50 commit 6f711b9

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

test/interface.spec.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,16 @@ describe('interface-ipfs-core tests', () => {
1818
tests.dag(defaultCommonFactory, {
1919
skip: [
2020
// dag.tree
21-
//
2221
// TODO vmx 2018-02-22: Currently the tree API is not exposed in go-ipfs
2322
'tree',
2423
// dag.get:
25-
//
2624
// FIXME vmx 2018-02-22: Currently not supported in go-ipfs, it might
2725
// be possible once https://github.com/ipfs/go-ipfs/issues/4728 is
2826
// done
2927
'should get a dag-pb node local value',
3028
'should get dag-pb value via dag-cbor node',
3129
'should get by CID string + path',
3230
// dag.put
33-
//
3431
// FIXME This works in go-ipfs because dag-pb will serialize any object. If
3532
// the object has neither a `data` nor `links` field it's serialized
3633
// as an empty object
@@ -78,12 +75,16 @@ describe('interface-ipfs-core tests', () => {
7875
]
7976
})
8077

81-
tests.generic(CommonFactory.create({
82-
// No need to stop, because the test suite does a 'stop' test.
83-
createTeardown: cb => cb()
84-
}))
85-
86-
tests.key(defaultCommonFactory)
78+
tests.key(defaultCommonFactory, {
79+
skip: [
80+
// key.export
81+
// TODO not implemented in go-ipfs yet
82+
'export',
83+
// key.import
84+
// TODO not implemented in go-ipfs yet
85+
'import'
86+
]
87+
})
8788

8889
tests.ls(defaultCommonFactory, {
8990
skip: [
@@ -99,6 +100,14 @@ describe('interface-ipfs-core tests', () => {
99100
]
100101
})
101102

103+
tests.miscellaneous(defaultCommonFactory, {
104+
skip: [
105+
// stop
106+
// FIXME go-ipfs returns an error https://github.com/ipfs/go-ipfs/issues/4078
107+
'should stop the node'
108+
]
109+
})
110+
102111
tests.object(defaultCommonFactory)
103112

104113
tests.ping(defaultCommonFactory)

0 commit comments

Comments
 (0)