Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #7 from noffle/coverage
Browse files Browse the repository at this point in the history
Add 100% test coverage.
  • Loading branch information
daviddias committed May 10, 2016
2 parents 6293385 + d482577 commit 8c0800b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@ const Peer = require('peer-info')
const multiaddr = require('multiaddr')

describe('libp2p-ipfs', () => {
const idA = Id.create()
const idB = Id.create()
const peerA = new Peer(idA)
const peerB = new Peer(idB)

var nodeA
var nodeB

it('prepare node A', (done) => {
peerA.multiaddr.add(multiaddr('/ip4/127.0.0.1/tcp/8010'))

nodeA = libp2p(peerA)
nodeA = libp2p()
nodeA.start(done)
})

Expand All @@ -43,6 +39,12 @@ describe('libp2p-ipfs', () => {
done()
})
})

it('dial to be implemented', (done) => {
expect(nodeA.dial).to.throw(Error)
done()
})

describe('ws - ws', () => {
const idA = Id.create()
const idB = Id.create()
Expand Down

0 comments on commit 8c0800b

Please sign in to comment.