mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-22 13:31:32 +00:00
fix: correct transport config check
This commit is contained in:
@ -55,7 +55,7 @@ describe('configuration', () => {
|
||||
transport: [ ]
|
||||
}
|
||||
})
|
||||
}).to.throw()
|
||||
}).to.throw('ERROR_EMPTY')
|
||||
})
|
||||
|
||||
it('should add defaults to missing items', () => {
|
||||
@ -95,7 +95,7 @@ describe('configuration', () => {
|
||||
},
|
||||
dht: {
|
||||
kBucketSize: 20,
|
||||
enabled: true,
|
||||
enabled: false,
|
||||
randomWalk: {
|
||||
enabled: false,
|
||||
queriesPerPeriod: 1,
|
||||
@ -152,8 +152,8 @@ describe('configuration', () => {
|
||||
transport: [ WS ]
|
||||
},
|
||||
config: {
|
||||
EXPERIMENTAL: {
|
||||
dht: true
|
||||
dht: {
|
||||
enabled: true
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -197,7 +197,7 @@ describe('configuration', () => {
|
||||
},
|
||||
dht: {
|
||||
kBucketSize: 20,
|
||||
enabled: true,
|
||||
enabled: false,
|
||||
randomWalk: {
|
||||
enabled: false,
|
||||
queriesPerPeriod: 1,
|
||||
|
Reference in New Issue
Block a user