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

Commit 52f228b

Browse files
committed
fix: pin tests
1 parent 0adf514 commit 52f228b

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

packages/interface-ipfs-core/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
"IPFS"
3030
],
3131
"license": "MIT",
32+
"eslintConfig": {
33+
"extends": "ipfs",
34+
"ignorePatterns": [
35+
"test/fixtures/*"
36+
]
37+
},
3238
"dependencies": {
3339
"abort-controller": "^3.0.0",
3440
"aegir": "ipfs/aegir#feat/remove-webpack-karma",

packages/interface-ipfs-core/src/pin/add.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ module.exports = (common, options) => {
6666
expect(cid).to.deep.equal(fixtures.files[0].cid)
6767
})
6868

69-
it.skip('should add recursively', async () => {
69+
it('should add recursively', async () => {
7070
await ipfs.pin.add(fixtures.directory.cid)
7171
await expectPinned(ipfs, fixtures.directory.cid, pinTypes.recursive)
7272

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

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

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

97-
it.skip('should fail to directly pin a recursive pin', async () => {
97+
it('should fail to directly pin a recursive pin', async () => {
9898
await ipfs.pin.add(fixtures.directory.cid)
9999
return expect(ipfs.pin.add(fixtures.directory.cid, {
100100
recursive: false

packages/interface-ipfs-core/src/pin/ls.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = (common, options) => {
1515
const describe = getDescribe(options)
1616
const it = getIt(options)
1717

18-
describe.skip('.pin.ls', function () {
18+
describe('.pin.ls', function () {
1919
this.timeout(50 * 1000)
2020

2121
let ipfs

packages/interface-ipfs-core/test/fixtures/hidden-files-folder/ipfs-add.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env node
2-
/* eslint-disable no-console */
32

43
'use strict'
54

packages/interface-ipfs-core/test/fixtures/test-folder/ipfs-add.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env node
2-
/* eslint-disable no-console */
32

43
'use strict'
54

0 commit comments

Comments
 (0)