From a0bc79b9b3d6b6ade95fe28a7d2f3dcb3466fd3a Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Thu, 9 Aug 2018 11:43:03 +0100 Subject: [PATCH] fix: files.ls and files.read*Stream tests (#1493) --- package.json | 6 +++--- test/core/interface.spec.js | 23 +---------------------- test/http-api/interface.js | 23 +---------------------- 3 files changed, 5 insertions(+), 47 deletions(-) diff --git a/package.json b/package.json index 445ce21e86..a603cc1b9e 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "expose-loader": "~0.7.5", "form-data": "^2.3.2", "hat": "0.0.3", - "interface-ipfs-core": "~0.75.1", + "interface-ipfs-core": "~0.75.2", "ipfsd-ctl": "~0.39.1", "mocha": "^5.2.0", "ncp": "^2.0.0", @@ -109,11 +109,11 @@ "ipfs-block": "~0.7.1", "ipfs-block-service": "~0.14.0", "ipfs-http-response": "~0.1.2", - "ipfs-mfs": "~0.2.5", + "ipfs-mfs": "~0.3.0", "ipfs-multipart": "~0.1.0", "ipfs-repo": "~0.22.1", "ipfs-unixfs": "~0.1.15", - "ipfs-unixfs-engine": "~0.31.3", + "ipfs-unixfs-engine": "~0.32.1", "ipld": "~0.17.3", "ipld-dag-cbor": "~0.12.1", "ipld-dag-pb": "~0.14.6", diff --git a/test/core/interface.spec.js b/test/core/interface.spec.js index 07fb19a6b5..67b9f974b3 100644 --- a/test/core/interface.spec.js +++ b/test/core/interface.spec.js @@ -22,28 +22,7 @@ describe('interface-ipfs-core tests', () => { skip: { reason: 'TODO: DHT is not implemented in js-ipfs yet!' } }) - tests.files(defaultCommonFactory, { - skip: [ - // files.ls - { - name: 'should ls directory', - reason: 'FIXME: https://github.com/ipfs/js-ipfs-mfs/issues/7' - }, - { - name: 'should ls -l directory', - reason: 'FIXME: https://github.com/ipfs/js-ipfs-mfs/issues/7' - }, - // files.read*Stream - { - name: 'readPullStream', - reason: 'FIXME: https://github.com/ipfs/js-ipfs-mfs/issues/8' - }, - { - name: 'readReadableStream', - reason: 'FIXME: https://github.com/ipfs/js-ipfs-mfs/issues/8' - } - ] - }) + tests.files(defaultCommonFactory) tests.key(CommonFactory.create({ spawnOptions: { diff --git a/test/http-api/interface.js b/test/http-api/interface.js index 9a1cc20e00..b27c2b22fb 100644 --- a/test/http-api/interface.js +++ b/test/http-api/interface.js @@ -25,28 +25,7 @@ describe('interface-ipfs-core over ipfs-api tests', () => { skip: { reason: 'TODO: DHT is not implemented in js-ipfs yet!' } }) - tests.files(defaultCommonFactory, { - skip: [ - // files.ls - { - name: 'should ls directory', - reason: 'FIXME: https://github.com/ipfs/js-ipfs-mfs/issues/7' - }, - { - name: 'should ls -l directory', - reason: 'FIXME: https://github.com/ipfs/js-ipfs-mfs/issues/7' - }, - // files.read*Stream - { - name: 'readPullStream', - reason: 'FIXME: https://github.com/ipfs/js-ipfs-mfs/issues/8' - }, - { - name: 'readReadableStream', - reason: 'FIXME: https://github.com/ipfs/js-ipfs-mfs/issues/8' - } - ] - }) + tests.files(defaultCommonFactory) tests.key(CommonFactory.create({ spawnOptions: {