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

Commit d40126c

Browse files
authored
Merge pull request #110 from ipfs/fix/tests
fix(config): make promise tests actually test the full promise chain
2 parents 04db5ec + 416560e commit d40126c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/config.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,9 @@ module.exports = (common) => {
158158
describe('.set', () => {
159159
it('set a new key', () => {
160160
return ipfs.config.set('Fruit', 'banana')
161-
.then(() => {
162-
ipfs.config.get('Fruit', (err, fruit) => {
163-
expect(err).to.not.exist
164-
expect(fruit).to.equal('banana')
165-
})
161+
.then(() => ipfs.config.get('Fruit'))
162+
.then((fruit) => {
163+
expect(fruit).to.equal('banana')
166164
})
167165
})
168166
})

0 commit comments

Comments
 (0)