Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: pin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Feb 19, 2021
1 parent 0adf514 commit 52f228b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions packages/interface-ipfs-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
"IPFS"
],
"license": "MIT",
"eslintConfig": {
"extends": "ipfs",
"ignorePatterns": [
"test/fixtures/*"
]
},
"dependencies": {
"abort-controller": "^3.0.0",
"aegir": "ipfs/aegir#feat/remove-webpack-karma",
Expand Down
8 changes: 4 additions & 4 deletions packages/interface-ipfs-core/src/pin/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ module.exports = (common, options) => {
expect(cid).to.deep.equal(fixtures.files[0].cid)
})

it.skip('should add recursively', async () => {
it('should add recursively', async () => {
await ipfs.pin.add(fixtures.directory.cid)
await expectPinned(ipfs, fixtures.directory.cid, pinTypes.recursive)

const pinChecks = Object.values(fixtures.directory.files).map(file => expectPinned(ipfs, file.cid))
return Promise.all(pinChecks)
})

it.skip('should add directly', async () => {
it('should add directly', async () => {
await ipfs.pin.add(fixtures.directory.cid, {
recursive: false
})
Expand All @@ -83,7 +83,7 @@ module.exports = (common, options) => {
await expectNotPinned(ipfs, fixtures.directory.files[0].cid)
})

it.skip('should recursively pin parent of direct pin', async () => {
it('should recursively pin parent of direct pin', async () => {
await ipfs.pin.add(fixtures.directory.files[0].cid, {
recursive: false
})
Expand All @@ -94,7 +94,7 @@ module.exports = (common, options) => {
await expectPinned(ipfs, fixtures.directory.files[0].cid, pinTypes.indirect)
})

it.skip('should fail to directly pin a recursive pin', async () => {
it('should fail to directly pin a recursive pin', async () => {
await ipfs.pin.add(fixtures.directory.cid)
return expect(ipfs.pin.add(fixtures.directory.cid, {
recursive: false
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-ipfs-core/src/pin/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = (common, options) => {
const describe = getDescribe(options)
const it = getIt(options)

describe.skip('.pin.ls', function () {
describe('.pin.ls', function () {
this.timeout(50 * 1000)

let ipfs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
/* eslint-disable no-console */

'use strict'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
/* eslint-disable no-console */

'use strict'

Expand Down

0 comments on commit 52f228b

Please sign in to comment.