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

Add 100% test coverage. #7

Merged
merged 1 commit into from
May 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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