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

Commit 570e508

Browse files
committed
fix: expect config to be an object
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
1 parent ff12e7e commit 570e508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/src/config/get.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ module.exports = (createCommon, options) => {
3232
it('should retrieve the whole config', (done) => {
3333
ipfs.config.get((err, config) => {
3434
expect(err).to.not.exist()
35-
expect(config).to.exist()
35+
expect(config).to.be.an('object')
3636
done()
3737
})
3838
})
3939

4040
it('should retrieve the whole config (promised)', () => {
4141
return ipfs.config.get()
4242
.then((config) => {
43-
expect(config).to.exist()
43+
expect(config).to.be.an('object')
4444
})
4545
})
4646

0 commit comments

Comments
 (0)