2021-07-06 17:17:26 -07:00
|
|
|
/*
|
|
|
|
|
Mocks for the Adapter library.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const ipfs = {
|
|
|
|
|
ipfsAdapter: {
|
|
|
|
|
ipfs: {}
|
|
|
|
|
},
|
|
|
|
|
ipfsCoordAdapter: {
|
2021-10-01 14:01:08 -07:00
|
|
|
ipfsCoord: {
|
|
|
|
|
useCases: {
|
|
|
|
|
peer: {
|
|
|
|
|
sendPrivateMessage: () => {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-07-06 17:17:26 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-10 09:57:25 -07:00
|
|
|
const localdb = {
|
|
|
|
|
Users: class Users {
|
|
|
|
|
static findById () {}
|
2021-07-10 21:08:00 -07:00
|
|
|
static find () {}
|
|
|
|
|
static findOne () {
|
|
|
|
|
return {
|
|
|
|
|
validatePassword: localdb.validatePassword
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async save () {
|
|
|
|
|
return {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
generateToken () {
|
|
|
|
|
return '123'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
toJSON () {
|
|
|
|
|
return {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async remove () {
|
|
|
|
|
return true
|
|
|
|
|
}
|
2021-07-13 08:57:57 -07:00
|
|
|
|
|
|
|
|
async validatePassword () {
|
|
|
|
|
return true
|
|
|
|
|
}
|
2021-07-10 21:08:00 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
validatePassword: () => {
|
|
|
|
|
return true
|
2021-07-10 09:57:25 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = { ipfs, localdb }
|