mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-consumer.git
synced 2026-09-21 16:52:03 -07:00
32 lines
364 B
JavaScript
32 lines
364 B
JavaScript
/*
|
|
Mocks for the js-ipfs
|
|
*/
|
|
|
|
class IPFS {
|
|
constructor () {
|
|
this.ipfs = {}
|
|
}
|
|
|
|
static create () {
|
|
const mockIpfs = new MockIpfsInstance()
|
|
|
|
return mockIpfs
|
|
}
|
|
|
|
async start () {}
|
|
}
|
|
|
|
class MockIpfsInstance {
|
|
constructor () {
|
|
this.config = {
|
|
profiles: {
|
|
apply: () => {}
|
|
}
|
|
}
|
|
}
|
|
|
|
stop () {}
|
|
}
|
|
|
|
module.exports = IPFS
|