Skip to content

Commit

Permalink
test: fix an issue with config
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed Jun 29, 2018
1 parent f7490ba commit ad627b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Expand Up @@ -28,7 +28,7 @@ const schema = Joi.object({
).allow(null),
connProtector: Joi.object().keys({
protect: Joi.func().required()
}),
}).unknown(),
peerDiscovery: Joi.array().items(
Joi.alternatives().try(
Joi.func(),
Expand Down
2 changes: 2 additions & 0 deletions test/pnet.node.js
Expand Up @@ -49,6 +49,8 @@ describe('private network', () => {
it('should create a libp2p node with a provided protector', () => {
let node
let protector = {
psk: '123',
tag: '/psk/1.0.0',
protect: () => { }
}

Expand Down

0 comments on commit ad627b4

Please sign in to comment.