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

Commit a82265d

Browse files
vmxAlan Shaw
authored and
Alan Shaw
committed
refactor: use types test from interface-ipfs-core (#1696)
The test for types also exists in interface-ipfs-core, which is the central test repository for both js-ipfs and js-http-api tests. Pulling in the test once from there is enough.
1 parent e90f5ed commit a82265d

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

test/core/init.spec.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,8 @@ const expect = chai.expect
88
chai.use(dirtyChai)
99
const isNode = require('detect-node')
1010
const hat = require('hat')
11-
const PeerId = require('peer-id')
12-
const PeerInfo = require('peer-info')
1311
const crypto = require('libp2p-crypto')
1412
const isIPFS = require('is-ipfs')
15-
const multiaddr = require('multiaddr')
16-
const multibase = require('multibase')
17-
const multihash = require('multihashes')
18-
const CID = require('cids')
1913
const IPFS = require('../../src/core')
2014

2115
const privateKey = 'CAASqAkwggSkAgEAAoIBAQChVmiObYo6pkKrMSd3OzW1cTL+RDmX1rkETYGKWV9TPXMNgElFTYoYHqT9QZomj5RI8iUmHccjzqr4J0mV+E0NpvHHOLlmDZ82lAw2Zx7saUkeQWvC0S9Z0o3aTx2sSubZV53rSomkZgQH4fYTs4RERejV4ltzLFdzQQBwWrBvlagpPHUCxKDUCnE5oIzdbD26ltWViPBWr7TfotzC8Lyi/tceqCpHMUJGMbsVgypnlgpey07MBvs71dVh5LcRen/ztsQO6Yju4D3QgWoyD0SIUdJFvBzEwL9bSiA3QjUc/fkGd7EcdN5bebYOqAi4ZIiAMLp3i4+B8Tzq/acull43AgMBAAECggEBAIDgZE75o4SsEO9tKWht7L5OeXxxBUyMImkUfJkGQUZd/MzZIC5y/Q+9UvBW+gs5gCsw+onTGaM50Iq/32Ej4nE4XURVxIuH8BmJ86N1hlc010qK2cjajqeCsPulXT+m6XbOLYCpnv+q2idt0cL1EH/1FEPeOEztK8ION4qIdw36SoykfTx/RqtkKHtS01A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
it('data types', () => {
116-
expect(ipfs.types).to.be.deep.equal({
117-
Buffer: Buffer,
118-
PeerId: PeerId,
119-
PeerInfo: PeerInfo,
120-
multiaddr: multiaddr,
121-
multibase: multibase,
122-
multihash: multihash,
123-
CID: CID
124-
})
125-
})
126-
127109
it('util', () => {
128110
expect(ipfs.util).to.be.deep.equal({
129111
crypto: crypto,

test/core/interface.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ describe('interface-ipfs-core tests', () => {
180180
}
181181
}), { skip: !isNode })
182182

183-
tests.types(defaultCommonFactory, { skip: { reason: 'FIXME: currently failing' } })
183+
tests.types(defaultCommonFactory)
184184

185185
tests.util(defaultCommonFactory, { skip: { reason: 'FIXME: currently failing' } })
186186
})

test/http-api/interface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe('interface-ipfs-core over ipfs-api tests', () => {
110110
}
111111
}))
112112

113-
tests.types(defaultCommonFactory, { skip: { reason: 'FIXME: currently failing' } })
113+
tests.types(defaultCommonFactory)
114114

115115
tests.util(defaultCommonFactory, { skip: { reason: 'FIXME: currently failing' } })
116116
})

0 commit comments

Comments
 (0)