This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/interface-ipfs-core/src/config Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ module.exports = (common, options) => {
33
33
const diff = await ipfs . config . profiles . apply ( 'lowpower' )
34
34
expect ( diff . original . Swarm . ConnMgr . LowWater ) . to . not . equal ( diff . updated . Swarm . ConnMgr . LowWater )
35
35
36
- const newConfig = await ipfs . config . get ( )
36
+ const newConfig = await ipfs . config . getAll ( )
37
37
expect ( newConfig . Swarm . ConnMgr . LowWater ) . to . equal ( diff . updated . Swarm . ConnMgr . LowWater )
38
38
} )
39
39
40
40
it ( 'should strip private key from diff output' , async ( ) => {
41
- const originalConfig = await ipfs . config . get ( )
41
+ const originalConfig = await ipfs . config . getAll ( )
42
42
const diff = await ipfs . config . profiles . apply ( 'default-networking' , { dryRun : true } )
43
43
44
44
// should have stripped private key from diff output
@@ -48,11 +48,11 @@ module.exports = (common, options) => {
48
48
} )
49
49
50
50
it ( 'should not apply a config profile in dry-run mode' , async ( ) => {
51
- const originalConfig = await ipfs . config . get ( )
51
+ const originalConfig = await ipfs . config . getAll ( )
52
52
53
53
await ipfs . config . profiles . apply ( 'server' , { dryRun : true } )
54
54
55
- const updatedConfig = await ipfs . config . get ( )
55
+ const updatedConfig = await ipfs . config . getAll ( )
56
56
57
57
expect ( updatedConfig ) . to . deep . equal ( originalConfig )
58
58
} )
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ module.exports = (common, options) => {
36
36
it ( 'should replace the whole config' , async ( ) => {
37
37
await ipfs . config . replace ( config )
38
38
39
- const _config = await ipfs . config . get ( )
39
+ const _config = await ipfs . config . getAll ( )
40
40
expect ( _config ) . to . deep . equal ( config )
41
41
} )
42
42
43
43
it ( 'should replace to empty config' , async ( ) => {
44
44
await ipfs . config . replace ( { } )
45
45
46
- const _config = await ipfs . config . get ( )
46
+ const _config = await ipfs . config . getAll ( )
47
47
expect ( _config ) . to . deep . equal ( { } )
48
48
} )
49
49
} )
You can’t perform that action at this time.
0 commit comments