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

Commit

Permalink
fix(config): make promise tests actually test the full promise chain
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Jan 17, 2017
1 parent 04db5ec commit 416560e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,9 @@ module.exports = (common) => {
describe('.set', () => {
it('set a new key', () => {
return ipfs.config.set('Fruit', 'banana')
.then(() => {
ipfs.config.get('Fruit', (err, fruit) => {
expect(err).to.not.exist
expect(fruit).to.equal('banana')
})
.then(() => ipfs.config.get('Fruit'))
.then((fruit) => {
expect(fruit).to.equal('banana')
})
})
})
Expand Down

0 comments on commit 416560e

Please sign in to comment.