mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
38 lines
486 B
JavaScript
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;
|