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

Commit

Permalink
factor: use types test from interface-ipfs-core
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vmx committed Nov 5, 2018
1 parent 323b0dc commit 09b8ca2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
12 changes: 0 additions & 12 deletions test/core/init.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,6 @@ describe('init', () => {
})
})

it('data types', () => {
expect(ipfs.types).to.be.deep.equal({
Buffer: Buffer,
PeerId: PeerId,
PeerInfo: PeerInfo,
multiaddr: multiaddr,
multibase: multibase,
multihash: multihash,
CID: CID
})
})

it('util', () => {
expect(ipfs.util).to.be.deep.equal({
crypto: crypto,
Expand Down
2 changes: 1 addition & 1 deletion test/core/interface.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('interface-ipfs-core tests', () => {
}
}), { skip: !isNode })

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

tests.util(defaultCommonFactory, { skip: { reason: 'FIXME: currently failing' } })
})
2 changes: 1 addition & 1 deletion test/http-api/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('interface-ipfs-core over ipfs-api tests', () => {
}
}))

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

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

0 comments on commit 09b8ca2

Please sign in to comment.