test: update tests to use libp2p-mplex module

This commit is contained in:
David Dias
2018-02-19 09:45:57 +00:00
parent 10a8ec3f31
commit 14d3578eaf
4 changed files with 20 additions and 20 deletions

View File

@ -48,12 +48,12 @@ describe('transports', () => {
})
})
it('create libp2pNode with multiplex only', (done) => {
it('create libp2pNode with mplex only', (done) => {
PeerInfo.create((err, peerInfo) => {
expect(err).to.not.exist()
const b = new Node(peerInfo, null, { muxer: ['multiplex'] })
expect(b.modules.connection.muxer).to.eql([require('libp2p-multiplex')])
const b = new Node(peerInfo, null, { muxer: ['mplex'] })
expect(b.modules.connection.muxer).to.eql([require('libp2p-mplex')])
done()
})
})