fix: remove peer discovery module config checks

Configuration for the peer discovery modules is now optional so this does not need to be validated. This also cleans up the config module to reduce repetition.

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
This commit is contained in:
Alan Shaw
2018-06-28 16:06:42 +01:00
committed by Jacob Heun
parent 1af5ba9093
commit 4ad70efb00
3 changed files with 16 additions and 69 deletions

View File

@ -113,21 +113,4 @@ describe('configuration', () => {
expect(() => validateConfig(options)).to.throw()
})
it('should require a non instanced peerDiscovery module to have associated options', () => {
const options = {
peerInfo,
modules: {
transport: [ WS ],
peerDiscovery: [ Bootstrap ]
},
config: {
EXPERIMENTAL: {
dht: false
}
}
}
expect(() => validateConfig(options)).to.throw()
})
})