Files
ipfs-bch-wallet-service/test/unit/mocks/ipfs-mock.js
T
2022-09-08 08:58:39 -07:00

38 lines
486 B
JavaScript

/*
Mocks for the js-ipfs
*/
// class IPFS {
// constructor () {
// this.ipfs = {}
// }
//
// static create () {
// const mockIpfs = new MockIpfsInstance()
//
// return mockIpfs
// }
//
// async start () {}
// }
function create () {
const mockIpfs = new MockIpfsInstance()
return mockIpfs
}
class MockIpfsInstance {
constructor () {
this.config = {
profiles: {
apply: () => {}
}
}
}
stop () {}
}
export default create;