fix(ipfs): Got adapter back to 100% unit test coverage

This commit is contained in:
Chris Troutner
2021-09-30 15:20:51 -07:00
parent 5af068e0d6
commit ee90bc0730
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -77,6 +77,8 @@ class IpfsAdapter {
async stop () {
await this.ipfs.stop()
return true
}
}
+13
View File
@@ -47,4 +47,17 @@ describe('#IPFS-adapter', () => {
}
})
})
describe('#stop', () => {
it('should stop the IPFS node', async () => {
// Mock dependencies
uut.ipfs = {
stop: () => {}
}
const result = await uut.stop()
assert.equal(result, true)
})
})
})