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

Commit

Permalink
fix: adds skips for #339
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
  • Loading branch information
alanshaw committed Jun 26, 2018
1 parent 59dff83 commit e2168ed
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"bs58": "^4.0.1",
"cids": "~0.5.3",
"concat-stream": "^1.6.2",
"detect-node": "^2.0.3",
"flatmap": "0.0.3",
"glob": "^7.1.2",
"ipfs-block": "~0.7.1",
Expand Down Expand Up @@ -75,6 +74,7 @@
"browser-process-platform": "~0.1.1",
"chai": "^4.1.2",
"cross-env": "^5.1.6",
"detect-node": "^2.0.3",
"dirty-chai": "^2.0.1",
"eslint-plugin-react": "^7.9.1",
"go-ipfs-dep": "~0.4.15",
Expand Down
41 changes: 31 additions & 10 deletions test/interface.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
'use strict'

const tests = require('interface-ipfs-core')
const isNode = require('detect-node')
const CommonFactory = require('./utils/interface-common-factory')
const IPFSApi = require('../src')

Expand All @@ -18,7 +19,7 @@ describe('interface-ipfs-core tests', () => {
skip: [
// dag.tree
//
// FIXME vmx 2018-02-22: Currently the tree API is not exposed in go-ipfs
// TODO vmx 2018-02-22: Currently the tree API is not exposed in go-ipfs
'tree',
// dag.get:
//
Expand All @@ -40,17 +41,14 @@ describe('interface-ipfs-core tests', () => {
tests.dht(defaultCommonFactory, {
skip: [
// dht.findpeer
//
// FIXME checking what is exactly go-ipfs returning
// https://github.com/ipfs/go-ipfs/issues/3862#issuecomment-294168090
'should fail to find other peer if peer does not exist',
// dht.findprovs
//
// FIXME go-ipfs endpoint doesn't conform with the others
// https://github.com/ipfs/go-ipfs/issues/5047
'should provide from one node and find it through another node',
// dht.get
//
// FIXME go-ipfs errors with Error: key was not found (type 6)
// https://github.com/ipfs/go-ipfs/issues/3862
'should get a value after it was put on another node'
Expand All @@ -59,14 +57,25 @@ describe('interface-ipfs-core tests', () => {

tests.files(defaultCommonFactory, {
skip: [
// files.add
// FIXME https://github.com/ipfs/js-ipfs-api/issues/339
isNode ? null : 'should add a nested directory as array of tupples',
isNode ? null : 'should add a nested directory as array of tupples with progress',
// files.addPullStream
// FIXME https://github.com/ipfs/js-ipfs-api/issues/339
isNode ? null : 'should add pull stream of valid files and dirs',
// files.addReadableStream
// FIXME https://github.com/ipfs/js-ipfs-api/issues/339
isNode ? null : 'should add readable stream of valid files and dirs',
// files.catPullStream
//
// FIXME not implemented in go-ipfs yet
// TODO not implemented in go-ipfs yet
'should export a chunk of a file',
'should export a chunk of a file in a Pull Stream',
'should export a chunk of a file in a Readable Stream'
],
only: true
'should export a chunk of a file in a Readable Stream',
// files.get
// FIXME https://github.com/ipfs/js-ipfs-api/issues/339
isNode ? null : 'should get a directory'
]
})

tests.generic(CommonFactory.create({
Expand All @@ -76,7 +85,19 @@ describe('interface-ipfs-core tests', () => {

tests.key(defaultCommonFactory)

tests.ls(defaultCommonFactory)
tests.ls(defaultCommonFactory, {
skip: [
// lsPullStream
// FIXME https://github.com/ipfs/js-ipfs-api/issues/339
isNode ? null : 'should pull stream ls with a base58 encoded CID',
// lsReadableStream
// FIXME https://github.com/ipfs/js-ipfs-api/issues/339
isNode ? null : 'should readable stream ls with a base58 encoded CID',
// ls
// FIXME https://github.com/ipfs/js-ipfs-api/issues/339
isNode ? null : 'should ls with a base58 encoded CID'
]
})

tests.object(defaultCommonFactory)

Expand Down

0 comments on commit e2168ed

Please sign in to comment.