This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 22'use strict'
33
44const { getDescribe, getIt, expect } = require ( '../utils/mocha' )
5+ const isPlainObject = require ( 'is-plain-object' )
56
67module . exports = ( createCommon , options ) => {
78 const describe = getDescribe ( options )
@@ -32,15 +33,17 @@ module.exports = (createCommon, options) => {
3233 it ( 'should retrieve the whole config' , ( done ) => {
3334 ipfs . config . get ( ( err , config ) => {
3435 expect ( err ) . to . not . exist ( )
35- expect ( config ) . to . exist ( )
36+ expect ( config ) . to . be . an ( 'object' )
37+ expect ( isPlainObject ( config ) ) . to . equal ( true )
3638 done ( )
3739 } )
3840 } )
3941
4042 it ( 'should retrieve the whole config (promised)' , ( ) => {
4143 return ipfs . config . get ( )
4244 . then ( ( config ) => {
43- expect ( config ) . to . exist ( )
45+ expect ( config ) . to . be . an ( 'object' )
46+ expect ( isPlainObject ( config ) ) . to . equal ( true )
4447 } )
4548 } )
4649
Original file line number Diff line number Diff line change 5353 "peer-id" : " ~0.11.0" ,
5454 "peer-info" : " ~0.14.1" ,
5555 "pull-stream" : " ^3.6.8" ,
56- "pump" : " ^3.0.0"
56+ "pump" : " ^3.0.0" ,
57+ "is-plain-object" : " ^2.0.4"
5758 },
58- "devDependencies" : {},
5959 "contributors" : [
6060 " Alan Shaw <alan@tableflip.io>" ,
6161 " Alex Potsides <alex@achingbrain.net>" ,
You can’t perform that action at this time.
0 commit comments