Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: test setting boolean configs keys on boolean fields
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Oct 4, 2019
1 parent 586fba2 commit d937fc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ module.exports = (createCommon, options) => {

it('should set a boolean', async () => {
const value = true
const key = 'Datastore.Path'
const key = 'Discovery.MDNS.Enabled'

await ipfs.config.set(key, value)
expect(await ipfs.config.get(key)).to.equal(value)
})

it('should set the other boolean', async () => {
const value = false
const key = 'Datastore.Path'
const key = 'Discovery.MDNS.Enabled'

await ipfs.config.set(key, value)
expect(await ipfs.config.get(key)).to.equal(value)
Expand Down

0 comments on commit d937fc1

Please sign in to comment.