Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit c5973cd

Browse files
committed
fix: can relevant tests to getAll
1 parent 4073fb4 commit c5973cd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/interface-ipfs-core/src/config/profiles/apply.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ module.exports = (common, options) => {
3333
const diff = await ipfs.config.profiles.apply('lowpower')
3434
expect(diff.original.Swarm.ConnMgr.LowWater).to.not.equal(diff.updated.Swarm.ConnMgr.LowWater)
3535

36-
const newConfig = await ipfs.config.get()
36+
const newConfig = await ipfs.config.getAll()
3737
expect(newConfig.Swarm.ConnMgr.LowWater).to.equal(diff.updated.Swarm.ConnMgr.LowWater)
3838
})
3939

4040
it('should strip private key from diff output', async () => {
41-
const originalConfig = await ipfs.config.get()
41+
const originalConfig = await ipfs.config.getAll()
4242
const diff = await ipfs.config.profiles.apply('default-networking', { dryRun: true })
4343

4444
// should have stripped private key from diff output
@@ -48,11 +48,11 @@ module.exports = (common, options) => {
4848
})
4949

5050
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()
5252

5353
await ipfs.config.profiles.apply('server', { dryRun: true })
5454

55-
const updatedConfig = await ipfs.config.get()
55+
const updatedConfig = await ipfs.config.getAll()
5656

5757
expect(updatedConfig).to.deep.equal(originalConfig)
5858
})

packages/interface-ipfs-core/src/config/replace.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ module.exports = (common, options) => {
3636
it('should replace the whole config', async () => {
3737
await ipfs.config.replace(config)
3838

39-
const _config = await ipfs.config.get()
39+
const _config = await ipfs.config.getAll()
4040
expect(_config).to.deep.equal(config)
4141
})
4242

4343
it('should replace to empty config', async () => {
4444
await ipfs.config.replace({})
4545

46-
const _config = await ipfs.config.get()
46+
const _config = await ipfs.config.getAll()
4747
expect(_config).to.deep.equal({})
4848
})
4949
})

0 commit comments

Comments
 (0)