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

Commit

Permalink
100% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed May 10, 2016
1 parent 3484c69 commit d482577
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 d482577

Please sign in to comment.