fix(ipfs): Autodetecting ip addr and adding to multiaddr

This commit is contained in:
Chris Troutner
2023-12-03 07:28:31 -08:00
parent 8bff69a4ca
commit 928a211a63
2 changed files with 15 additions and 2 deletions
+2
View File
@@ -53,6 +53,8 @@ describe('#IPFS-adapter', () => {
it('should return a promise that resolves into an instance of IPFS.', async () => {
// Mock dependencies.
sandbox.stub(uut, 'createNode').resolves(ipfs)
sandbox.stub(uut.publicIp, 'v4').resolves('192.168.2.4')
sandbox.stub(uut, 'multiaddr').returns('/ip4/fake-multiaddr')
const result = await uut.start()
// console.log('result: ', result)