test(fix): correct findProviders test for missing provider (#391)

* test(fix): correct findProviders test for missing provider

* chore: fix lint
This commit is contained in:
Jacob Heun
2019-07-30 15:11:24 +02:00
committed by GitHub
parent 48b1b442e9
commit 65d52857a5
12 changed files with 69 additions and 68 deletions

View File

@ -69,7 +69,7 @@ class Libp2p extends EventEmitter {
// Attach stream multiplexers
if (this._modules.streamMuxer) {
let muxers = this._modules.streamMuxer
const muxers = this._modules.streamMuxer
muxers.forEach((muxer) => this._switch.connection.addStreamMuxer(muxer))
// If muxer exists
@ -99,7 +99,7 @@ class Libp2p extends EventEmitter {
// Attach crypto channels
if (this._modules.connEncryption) {
let cryptos = this._modules.connEncryption
const cryptos = this._modules.connEncryption
cryptos.forEach((crypto) => {
this._switch.connection.crypto(crypto.tag, crypto.encrypt)
})