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

Commit d482577

Browse files
committed
100% coverage
1 parent 3484c69 commit d482577

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/index.spec.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@ const Peer = require('peer-info')
88
const multiaddr = require('multiaddr')
99

1010
describe('libp2p-ipfs', () => {
11-
const idA = Id.create()
1211
const idB = Id.create()
13-
const peerA = new Peer(idA)
1412
const peerB = new Peer(idB)
1513

1614
var nodeA
1715
var nodeB
1816

1917
it('prepare node A', (done) => {
20-
peerA.multiaddr.add(multiaddr('/ip4/127.0.0.1/tcp/8010'))
21-
22-
nodeA = libp2p(peerA)
18+
nodeA = libp2p()
2319
nodeA.start(done)
2420
})
2521

@@ -43,6 +39,12 @@ describe('libp2p-ipfs', () => {
4339
done()
4440
})
4541
})
42+
43+
it('dial to be implemented', (done) => {
44+
expect(nodeA.dial).to.throw(Error)
45+
done()
46+
})
47+
4648
describe('ws - ws', () => {
4749
const idA = Id.create()
4850
const idB = Id.create()

0 commit comments

Comments
 (0)