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

Commit 09b8ca2

Browse files
committed
factor: use types test from interface-ipfs-core
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 323b0dc commit 09b8ca2

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

test/core/init.spec.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,6 @@ describe('init', () => {
112112
})
113113
})
114114

115-
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-
127115
it('util', () => {
128116
expect(ipfs.util).to.be.deep.equal({
129117
crypto: crypto,

test/core/interface.spec.js

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

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

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

test/http-api/interface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ describe('interface-ipfs-core over ipfs-api tests', () => {
106106
}
107107
}))
108108

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

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

0 commit comments

Comments
 (0)