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

Commit

Permalink
Add test to inteface and skip it
Browse files Browse the repository at this point in the history
  • Loading branch information
tk26 committed Aug 28, 2020
1 parent 41fb6b8 commit dcb63c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/interface-ipfs-core/src/miscellaneous/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,11 @@ module.exports = (common, options) => {
expect(Multiaddr.isMultiaddr(ma)).to.be.true()
}
})

it('should have protocols property', async () => {
const res = await ipfs.id()

expect(res).to.have.a.property('protocols').that.is.an('array')
})
})
}
4 changes: 4 additions & 0 deletions packages/ipfs-http-client/test/interface.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ describe('interface-ipfs-core tests', () => {
{
name: 'should include the interface-ipfs-core version',
reason: 'TODO not implemented in go-ipfs yet'
},
{
name: 'should have protocols property',
reason: 'TODO not implemented in go-ipfs yet'
}
]
})
Expand Down

0 comments on commit dcb63c9

Please sign in to comment.